html代码|死链接自动跳转首页(html自动跳转指定链接代码)
时间:2021-11-11 10:13:24 阅读:1309
<script language="javascript" type="text/javascript"> function Jump(Num) { Num--; document.getElementById("sp_Number").innerHTML = Num; if (Num <= 0) { window.location.href="网站首页的网址"; } else { timer = setTimeout("Jump(" + Num + ")", 1000); } } window.onload = function myfunction() { Jump(5); } </script> <div style="padding-right:0px;padding-left:0px;padding-bottom:200px;margin:0px auto;width:620px;line-height:100px;padding-top:200px;"> <h1>非常抱歉,您访问的页面不存在。</h1> 请等待 <span id="sp_Number" style="font-size:75px;font-family:Arial Black;">N</span> 秒后跳转到网站首页...</div>
网友评论