Auto refresh af script.
Hej jeg har lavet en lille countdown på min side, og jeg har et lille problem jeg ville gerne have hvis sekunderne blev opdateret, men jeg kan kun finde ud af at refreshe HELE siden og det tager 2 sec på en 512, også er det jo ikke realtime den viser, nogen der kan hjælpe mig med det???KODE:
<html>
<head>
<title>Moonstar.dk</title>
<link rel="stylesheet" href="css/style.css" type="text/css">
<style>BODY {
SCROLLBAR-FACE-COLOR: #000000; SCROLLBAR-HIGHLIGHT-COLOR: #999999; SCROLLBAR-SHADOW-COLOR: #999999; SCROLLBAR-3DLIGHT-COLOR: #999999; SCROLLBAR-ARROW-COLOR: #999999; SCROLLBAR-TRACK-COLOR: #999999; SCROLLBAR-DARKSHADOW-COLOR: #999999
}
</style>
<style type=text/css>A {
TEXT-DECORATION: none
}
</style>
</head>
<body bgcolor="#999999" text="#000000" link="#000000" vlink="#000000" alink="#000000">
<div align="center">
<table width="700" border="1" cellspacing="0" cellpadding="0" background="images/top.jpg" height="100">
<tr>
<td><br>
<br>
<br>
</td>
</tr>
</table>
<table width="700" border="0" cellspacing="0" cellpadding="0" height="194">
<tr>
<td valign="top" height="213">
<table width="100%" border="1" cellspacing="0" cellpadding="0" height="8" bgcolor="#FFFFFF">
<tr>
<td width="100%" valign="top" height="221" bgcolor="#000000">
<div align="center">
<div align="center">
<table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolorlight="#000000" bordercolordark="#000000" bgcolor="#000000" style="border-bottom-width: 0px">
<tr bgcolor="#ffffff">
<td height="2" bgcolor="#000000" style="border-bottom-style: none; border-bottom-width: medium">
<div align="center"><font color="#999999" size="4"><b>
Lulle</b></font></div>
</td>
</tr>
</table>
</div>
<table border="0" width="100%">
<tr>
<td width="50%" bgcolor="#000000">
<p align="center"> </td>
<td width="50%" bgcolor="#000000">
<p align="center"> </td>
</tr>
<tr>
<td width="100%" align="center" colspan="2" bgcolor="#000000"> </td>
</tr>
<tr>
<td width="100%" align="center" colspan="2" bgcolor="#000000" height="38">
<font color="#FFFFFF"> <%
CountdownDate = #5/13/2005 00:00:00#
If Date >= CountdownDate Then
Response.Write "HA' EN FED DAG/AFTEN"
Response.End
End If
theDate = Now
DaysLeft = DateDiff("d",theDate,CountdownDate) - 1
theDate = DateAdd("d",DaysLeft,theDate)
HoursLeft = DateDiff("h",theDate,CountdownDate) - 1
theDate = DateAdd("h",HoursLeft,theDate)
MinutesLeft = DateDiff("n",theDate,CountdownDate) - 1
theDate = DateAdd("n",MinutesLeft,theDate)
SecondsLeft = DateDiff("s",theDate,CountdownDate) - 1
%><font size="2">
<BODY>
</font></font><font size="2" face="Arial" color="#999999">Der er <%= DaysLeft%> Dage, <%= HoursLeft %> Timer,
<%= MinutesLeft %> Minutter, <%= SecondsLeft %> Sekunder tilbage
til din sidste skoledag Lulle.
</font>
</BODY>
</HTML>
</tr>
<tr>
<td width="100%" align="center" colspan="2" bgcolor="#000000" height="3">
<font color="#FFFFFF"><img border="0" src="images/linie.jpg" width="380" height="1"></font></td>
</tr>
<tr>
<td width="100%" align="center" colspan="2" bgcolor="#000000"> </td>
</tr>
<tr>
<td width="100%" align="center" colspan="2" bgcolor="#000000"> </td>
</tr>
<tr>
<td width="100%" align="center" colspan="2" bgcolor="#000000"> </td>
</tr>
<tr>
<td width="100%" align="center" colspan="2" bgcolor="#000000"><p> </td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</body>
</html>
