页面跳转


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
 <script>
         var i = 5;
         var times = setInterval("fun()", 1000);
         function fun() {
             if (i == 0) {
                 window.location.href = "https://www.hao123.com/";
                 clearInterval(times);
             }
             document.getElementById("word").innerHTML = i;
             i--;
         }
 </script>
     <div>
         <p>页面将在 <span id="word">5</span> 秒钟后返回首页!</p>
     </div>
</body>
</html>

阅读更多
上一篇全选
下一篇轮播图
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭