首页 > 其他 > 详细

10s倒计时

时间:2017-04-18 15:13:30      阅读:151      评论:0      收藏:0      [点我收藏+]

<!DOCTYPE html>
<html>
<meta http-equiv="Content-Type" content="text/html;charset=utf8">
<head>
<title>倒计时</title>
</head>
<body>
请等待<span id="dd">10</span>秒
<script type="text/javascript">
function run(){
var s = document.getElementById("dd");
if(s.innerHTML == 0){
window.location.href=‘#‘;
return false;
}
s.innerHTML = s.innerHTML * 1 - 1;
}
setInterval("run();", 1000);
</script>

 


</body>
</html>

10s倒计时

原文:http://www.cnblogs.com/ll-taj/p/6727803.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!