|
- <html>
- <head>
- <title>奥韵会倒计时</title>
- <script language="vbscript">
- Dim NowHour
- Dim NowDay
- Dim NowSecond
- Dim NowMinutes
- Function Page_Load()
- Window.setTimeout "Page_Load()",10
- NowDay=DateDiff("d",Now,"2008-8-8 00:00:00")'求剩余天数
- NowHour=DateDiff("h",Now,"2008-8-8 00:00:00")'求剩余小时
- NowMinutes=DateDiff("n",Now,"2008-8-8 00:00:00")'求剩余分钟
- NowSecond=DateDiff("s",Now,"2008-8-8 00:00:00")'求剩余秒数
- document.all("ShowInfo").innerHTML="距离奥韵会开幕还有"&NowDay&"天"&NowHour&"小时"&NowMinutes&"分钟"&NowSecond&"秒"
- End Function
- </script>
- </head>
- <body onload="Page_Load()">
- <div id="ShowInfo"></div>
- </body>
- </html>
复制代码 |
|