倒记时60刷新网页的js代码

时间:2014-02-18    点击:363   
复制代码 代码如下:

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>60刷新本页</title>
<script type="text/javascript">
var t;
t=60;
function shua()
{
t=t-1;
document.getElementById("hints").innerHTML="离下次刷新时间还有 "+t+" 秒";
if (t==0)
{
document.location.reload();
}
}
</script>

</head>
<body onload="window.setInterval(shua,1000);">
<center>
<font id="hints" style="color:blue" >离下次刷新时间还有60秒</font><br/>
<center>
</body>
</html>
JS执行删除前的判断代码
JS弹出层单纯的绝对定位居中示例代码
jquery的live使用注意事项
js如何获取object类型里的键值
纯js写的分页表格数据为json串
> 返回     
地址:上海市普陀区胶州路941号长久商务中心 电话: QQ:
© Copyright 2012 上海网络 Product All Rights Reserved