Ur-script virker ikke?
Hvad er fejlen her, jeg kan ikke se mig ud af det.Så hvis der en nogen der kan hjælpe!!
Det jeg har sat ind er et dato/ur script som går lige som et normalt digitalt ur!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Svendborg forenede Boldklubber</title>
<style type="text/css">
<!--
body {
background-color: #cdcdcd;
}
body,td,th {
font-family: Arial, Helvetica, sans-serif;
font-size: 10pt;
color: #000000;
}
a {
font-family: Arial, Helvetica, sans-serif;
font-size: 10pt;
color: #000000;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #000000;
}
a:hover {
text-decoration: underline;
color: #33CC00;
}
a:active {
text-decoration: none;
color: #000000;
}
-->
</style></head>
<br>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<!--DWLayoutTable-->
<tr>
<td height="1" colspan="5" valign="top" bgcolor="#000000"><img src="../images/spc(1).gif" width="1" height="1"></td>
</tr>
<tr>
<td width="1" rowspan="6" valign="top" bgcolor="#000000"><img src="../images/spc(1).gif" width="1" height="1"></td>
<td width="163" height="100" valign="top" id="logo">logo</td>
<td width="420" valign="top" id="banner">banner</td>
<td width="215" align="right" valign="middle" bgcolor="#ECE9D8" id="søg">søg </td>
<td width="1" rowspan="6" valign="top" bgcolor="#000000"><img src="../images/spc(1).gif" width="1" height="1"></td>
</tr>
<tr>
<td height="1" colspan="3" valign="top" bgcolor="#000000"><img src="../images/spc(1).gif" width="1" height="1"></td>
</tr>
<tr>
<td height="10" colspan="2" valign="top" bgcolor="#ededed" id="menu"><img src="../images/spc(1).gif" width="1" height="1">menu</td>
<td align="right" valign="top" bgcolor="#CCCC99" id="dato">
<p>
<div id="datodiv" name="datodiv"></div>
<script>
function two(s){
return (s-0<10)?'0'+s:s;
}
function getDTStr(){
dato = new Date();
d = dato.getDay();
m = dato.getMonth();
y = dato.getFullYear();
h = dato.getHours();
mi = dato.getMinutes();
s = dato.getSeconds();
return two(d)+'-'+two(m)+'-'+two(y)+' '+two(h)+':'+two(mi)+'.'+two(s);
delete dato;
}
function updatedato(){
datodiv.innerHTML = getDTStr();
}
function bodyloaded(){
window.setInterval('updatedato();', 500);
}
</script>
<a href="klokken.php"><img src="images/ur.gif" alt="ur" width="9" height="9" border="0"></a> </td>
</tr>
<tr>
<td height="1" colspan="3" valign="top" bgcolor="#000000"><img src="../images/spc(1).gif" width="1" height="1"></td>
</tr>
<tr>
<td colspan="2" rowspan="2" valign="top" id="content">content</td>
<td height="477" align="center" valign="top" bgcolor="#ECE9D8" id="colRight">seneste nyheder </td>
</tr>
<tr>
<td height="18" valign="top" bgcolor="#CCCC99"><!--DWLayoutEmptyCell--> </td>
</tr>
<tr>
<td height="1" valign="top" bgcolor="#000000"><img src="../images/spc(1).gif" width="1" height="1"></td>
<td valign="top" bgcolor="#000000"></td>
<td valign="top" bgcolor="#000000"></td>
<td valign="top" bgcolor="#000000"></td>
<td valign="top" bgcolor="#000000"></td>
</tr>
</table>
<body onLoad="bodyloaded()">
</body>
</html>
