%
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>
現(xiàn)在時間: %= Now %>
p>
距離2008年還有 %= DaysLeft%>天%= HoursLeft %> 小時%= MinutesLeft %>分 %= SecondsLeft %>秒.走得最急的,都是最美的時光.
/body>/html>
[1]
標(biāo)簽:遵義 襄陽 朔州 邯鄲 中山 雞西 柳州 威海
巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《如何制作一個倒計時的程序?》,本文關(guān)鍵詞 如何,制作,一個,倒計時,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。下一篇:如何制作一個Web日程安排表?