时间就以2005年12月8日
谢谢
<% 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 %> <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>