MENU

js 跳转

• December 23, 2019 • Read: 226 • 日常

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="./css/base.css">
    <link rel="stylesheet" href="./css/skin2.css" id="sinkCSS">
    <title>Document</title>
    <style>
        #d1 {
            font-size: 60px;
            color: red;
        }
    </style>
    <script>
        window.onload = init;

        function init() {
            window.setTimeout("tiaozhuan()", 5000);
            window.setInterval("shijian()", 1000);
        }

        function tiaozhuan() {
            location.replace("http://wwww.baidu.com");
        }

        function shijian() {
            var obj = document.getElementById("d1");
            var n = obj.innerHTML;
            obj.innerHTML = n - 1;
        }
    </script>
</head>

<body>
    账号注册成功,页面会在<span id="d1">5</span>秒内跳转到首页
</body>

</html>
您的大名:
万水千山总是情,给个打赏行不行。 打赏
- - - The END - - -
  • 文章标题:js 跳转
  • 文章链接:https://gxusb.com/74.html
  • 版权所有:本文版权归Get-林林小窝 所有,转载请注明出处!除特殊注明外(如有侵权,请联系 gxggxl@qq.com ),本站原创内容均采用 署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0) 进行许可
  • 广而告之

    Last Modified: March 29, 2020
    Archives QR Code
    QR Code for this page
    Tipping QR Code