[求助]我是初学者请大家指教!
<%
CountdownDate = #12/8/2005 00:00:00AM#
If Date >= CountdownDate Then
Response.Write("<center><font size=3>新年快乐!</font></center>")
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
%>
<center>
现在时间: <%= Now %>
<div id="jnkc" align="cent"><font color=ffffff>
<script>setInterval("jnkc.innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());",1000);
</script></font>
</font> </div>
<p>
距2005年12月8日还有 <font color=red><%= DaysLeft%></font>天<font color=red><%= HoursLeft %></font> 小时<font color=red><%= MinutesLeft %></font>分<font color=red> <%= SecondsLeft %></font>秒
</center>
我想让剩余的天数变化,怎么办啊?
[此贴子已经被作者于2005-9-19 14:30:23编辑过]