日期:2014-05-18 浏览次数:20463 次
<script language="JavaScript"> <!-- // var overDate = 1 //设置要倒计时的小时数 EndTimeMsg = overDate * 60 * 60 function show() { h = Math.floor(EndTimeMsg / 60 / 60); m = Math.floor((EndTimeMsg - h * 60 * 60) / 60) s = Math.floor((EndTimeMsg - h * 60 * 60 - m * 60)) document.getElementById("HH").innerHTML = h document.getElementById("MM").innerHTML = m document.getElementById("SS").innerHTML = s EndTimeMsg--; if (EndTimeMsg < 0) window.location = "finished.aspx"; } setInterval("show()", 1000) // --> </script> </head> <body> <strong id="HH"></strong>时 <strong id="MM"></strong>分 <strong id="SS"></strong>秒 </body> </html>