看看我的倒即时 呵呵 <% CountdownDate = #8/8/2008 8:00:00PM# If Date >= CountdownDate Then Response.Write("<center><font size=3>2008-北京 奥运会 今天开始! </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> <font size=2>距离2008年北京奥运会开幕还有 </font><font color=red><%= DaysLeft%></font><font size=2>天
</font><font color=red><%= HoursLeft %></font> <font size=2>小时</font><font color=red><%= MinutesLeft %
></font><font size=2>分</font><font color=red> <%= SecondsLeft %></font><font size=2>秒</font> </center>
[此贴子已经被作者于2005-5-10 9:00:16编辑过]