Hey alle sammen
Jeg er ved at lave et nyt design til min side
http://www.scextra.hotserv.dk/test/Kildekoden er:
<html>
<head>
<?php include ("dato.html"); ?>
<title>Untitled-5</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
body { background-image: url('images/bg.gif');
text-align: center;
}
</style>
</head>
<body onload="a_Tid()" bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (Untitled-5) -->
<table id="Table_01" width="700" height="701" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="7" background="images/Untitled-2_01.gif" with="700" height="21">
</td>
</tr>
<tr>
<td colspan="5" rowspan="2" background="images/Untitled-2_02.gif" with="529" height="96">
</td>
<td background="images/Untitled-2_03.gif" with="152" height="67">
Hey</td>
<td rowspan="6" background="images/Untitled-2_04.gif" with="19" height="679">
</td>
</tr>
<tr>
<td background="images/Untitled-2_05.gif" with="152" height="29">
</td>
</tr>
<tr>
<td colspan="4" rowspan="2" background="images/Untitled-2_06.gif" with="527" height="45">
</td>
<td colspan="2" background="images/Untitled-2_07.gif" with="154" height="15">
<span id="clock"></span></td>
</tr>
<tr>
<td colspan="2" background="images/Untitled-2_08.gif" with="154" height="30">
</td>
</tr>
<tr>
<td rowspan="2" background="images/Untitled-2_09.gif" with="21" height="538">
</td>
<td background="images/Untitled-2_10.gif" with="128" height="513">
</td>
<td rowspan="2" background="images/Untitled-2_11.gif" with="32" height="538">
</td>
<td colspan="3" background="images/Untitled-2_12.gif" with="500" height="513">
Test?</td>
</tr>
<tr>
<td background="images/Untitled-2_13.gif" with="128" height="25">
</td>
<td colspan="3" background="images/Untitled-2_14.gif" with="500" height="25">
</td>
</tr>
<tr>
<td>
<img src="images/spacer.gif" width="21" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="128" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="32" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="346" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="2" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="152" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="19" height="1" alt=""></td>
</tr>
</table>
<!-- End ImageReady Slices -->
</body>
</html>
dato.html:
<script language="JavaScript1.2">
<!-- Javascript DYNAMISK DATO starter her
//Script fra @-beynder - http://www.a-begynder.dk
//Vi har næsten alt til web ... blandt andet ;-)
//Gratis script. Slet venligst ikke vores reference
//-------------------------------------------------
// Definer skrifttypen her
var starttag="<font size='2' color='#000000' face='Arial'>"
klokke="ja" //vælg "ja" eller "nej"
ugedag="ja" //vælg "ja" eller "nej"
// Du skal IKKE ændre noget efter denne linie //
////////////////////////////////////////////////
var dayarray=new Array("Søndag","Mandag","Tirsdag","Onsdag", "Torsdag","Fredag","Lørdag")
var montharray=new Array("Januar","Februar","Marts","April","Maj","Juni","Juli", "August","September","Oktober","November","December")
function getthedate(){
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
var hours=mydate.getHours()
var minutes=mydate.getMinutes()
var seconds=mydate.getSeconds()
//http://www.a-begynder.dk
if (hours>24){
hours=hours-24
}
if (hours==0)
hours=24
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
//Hvilken version skrives
if (klokke=="ja" && ugedag=="ja"){
var cdate=starttag+dayarray[day]+" den "+daym+". "+montharray[month]+" "+year+" klokken "+hours+":"+minutes+":"+seconds
+"</font>"
}
if (klokke=="ja" && ugedag=="nej"){
var cdate=starttag+daym+". "+montharray[month]+" "+year+" klokken "+hours+":"+minutes+":"+seconds
+"</font>"
}
if (klokke=="nej" && ugedag=="ja"){
var cdate=starttag+dayarray[day]+" den "+daym+". "+montharray[month]+" "+year
+"</font>"
}
if (klokke=="nej" && ugedag=="nej"){
var cdate=starttag+daym+". "+montharray[month]+" "+year
+"</font>"
}
if (klokke!="nej" && klokke!="ja" || ugedag!="nej" && ugedag!="ja"){
var cdate="<font color='red'>Du skal angive 'ja' eller 'nej' for hhv. ugedag og klokke</font>"
}
if (document.all)
document.all.clock.innerHTML=cdate
else if (document.getElementById)
//if (document.all) http://www.a-begynder.dk
document.getElementById("clock").innerHTML=cdate
else
document.write(cdate)
}
if (!document.all&&!document.getElementById)
getthedate()
function a_tid(){
if (document.all||document.getElementById)
setInterval("getthedate()",1000)
}
// javascript slutter her -->
</script>
Det er i cellen med baggrunden Untitled-2_07.gif
problemet opstår.
Den viser nemlig ikke datoen