网络新手
Would you like to react to this message? Create an account in a few clicks or log in to continue.
网络新手

原域名www.351.hag.cn已经改为www.wlxs.888ubb.net,请大家牢记!


您没有登录。 请登录注册

常用的倒计时脚本代码

向下  留言 [第1页/共1页]

1常用的倒计时脚本代码 Empty 常用的倒计时脚本代码 周日 五月 23, 2010 4:59 pm

tianxia


书童

<script language=JavaScript>
var now = new Date();
function GetServerTime()
{
var urodz = new Date("1/26/2011 23:59:59");
now.setTime(now.getTime()+250);
days = (urodz - now) / 1000 / 60 / 60 / 24;
daysRound = Math.floor(days);
hours = (urodz - now) / 1000 / 60 / 60 - (24 * daysRound);
hoursRound = Math.floor(hours);
minutes = (urodz - now) / 1000 /60 - (24 * 60 * daysRound) - (60 * hoursRound);
minutesRound = Math.floor(minutes);
seconds = (urodz - now) / 1000 - (24 * 60 * 60 * daysRound) - (60 * 60 * hoursRound) - (60 * minutesRound);
secondsRound = Math.round(seconds);
document.getElementById("date").innerHTML = daysRound;
document.getElementById("time").innerHTML = hoursRound + ":" + minutesRound + ":" + secondsRound;
}
setInterval("GetServerTime()",250);
</script><p><span>距离春节还有</span><span id="date"></span><span class="white14b">天</span><span id="time"></span>

返回页首  留言 [第1页/共1页]

您在这个论坛的权限:
不能在这个论坛回复主题

 




  

创建论坛免费 | ©phpBB | 互助中心 | 违法举报 | Cookies | 最近的讨论