js几秒以后倒计时跳转示例
代码如下:
<html> <head> <title>出错啦~~~</title> <link href="css/login1.css" mce_href="css/login1.css" rel="stylesheet" type="text/css" /> <script language="javascript" type="text/javascript"> var i = 5; var intervalid; intervalid = setInterval("fun()", 1000); function fun() { if (i == 0) { window.location.href = "../index.html"; clearInterval(intervalid); } document.getElementById("mes").innerHTML = i; i--; } </script> </head> <body> <div id="errorfrm"> <h3>出错啦~~~</h3> <div id="error"> <img src="images/error.gif" mce_src="images/error.gif" alt="" /> <p>系统出错,请联系管理员!</p> <p>将在 <span id="mes">5</span> 秒钟后返回首页!</p> </div> </div> </body> </html>
相关推荐
88274956 2020-11-03
runner 2020-09-01
梦的天空 2020-08-25
移动开发与培训 2020-08-16
ReunionIsland 2020-08-16
lyqdanang 2020-08-16
MyNameIsXiaoLai 2020-07-08
星辰的笔记 2020-07-04
csstpeixun 2020-06-28
letheashura 2020-06-26
liaoxuewu 2020-06-26
sunzhihaofuture 2020-06-21
FEvivi 2020-06-16
坚持着执着 2020-06-16
waterv 2020-06-14
xiaoge00 2020-06-14
firejq 2020-06-14
firstboy0 2020-06-14
e度空间 2020-06-12
zhongweinan 2020-06-10