源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

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

  • 时间:2022-07-22 19:04 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:如何制作一个倒计时的程序?
<% CountdownDate = #1/1/2008 00:00:00AM# If Date >= CountdownDate Then     Response.Write "2008  北京"     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 %> <html> <body> 现在时间: <%= Now %> <p> 距离2008年还有 <%= DaysLeft%><%= HoursLeft %> 小时<%= MinutesLeft %> <%= SecondsLeft %>.走得最急的,都是最美的时光. </body></html> [b][1][/b]
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部