您的当前位置:首页正文

如何制作一个倒计时的程序?

2022-06-15 来源:知库网


如何制作一个倒计时的程序?

见下:

<%

CountdownDate = #1/1/2008 00:00:00AM#

If Date >= CountdownDate Then

Response.Write \"2008 北京\"

Response.End

End If

theDate = Now

DaysLeft = DateDiff(\"d\

theDate = DateAdd(\"d\

HoursLeft = DateDiff(\"h\

theDate = DateAdd(\"h\

MinutesLeft = DateDiff(\"n\

theDate = DateAdd(\"n\

SecondsLeft = DateDiff(\"s\

%>

现在时间: <%= Now %>

距离2008年还有 <%= DaysLeft%>天<%= HoursLeft %> 小时<%= MinutesLeft %>分 <%= SecondsLeft %>秒

因篇幅问题不能全部显示,请点此查看更多更全内容