互联网知识

精准传达 • 价值共享

洞悉互联网前沿资讯,探寻网站营销规律

查看其它板块

分享狐灵科技的一款跳转页面

作者:狐灵科技 | 2020-02-20 19:11 |点击:

跳转页主要用途域名更换 或者需要跳转其他用途

下面把代码贴出来

下面是的html代码
 
  1.  
    <!doctype html>
    <html lang="zh">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <!--360极速模式-->
        <meta name="renderer" content="webkit">
        <title>模板库_狐灵科技</title>
        <link rel="icon" href="http://www.hulingweb.cn/favicon.ico" type="image/x-icon" >
        <meta name="keywords" content="【重庆模板网站建设】千余套精美设计的成品网站,总有一套适合您!预置丰富的页面元素,可根据您的需求灵活选择!快速、快捷的为您搭建网站!深圳模板网站建设咨询:15523356218">
        <meta name="description" content="">
        <style>
            html,body,.jump {
                height: 100vh;
                width: 100vw;
                overflow: hidden;
            }
            .jump {
                background: url(http://www.hulingweb.cn/uploads/images/jump-bg.png) no-repeat;
                background-size: cover;
                position: relative;
                text-align: center;
            }
            .center-box {
                margin: 280px auto 0;
                height: 230px;
                width: 370px;
                display: inline-block;
                text-align: center;
            }
            .jump-content {
                font-size: 18px;
                line-height: 30px;
                color: #666;
                font-weight: 300;
            }
            .jump-tips {
                font-size: 14px;
                line-height: 30px;
                color: #999999;
            }
            .jump-button {
                width: 120px;
                height: 36px;
                background-color: #3296fa;
                border-radius: 3px;
                font-size: 14px;
                line-height: 36px;
                color: #ffffff;
                display: inline-block;
                text-decoration: none;
            }
        </style>
    </head>
    <body>
        <div class="jump">
            <div class="center-box">
                <img src="http://www.hulingweb.cn/uploads/images/index.svg" alt="">
                <div class="jump-content" style="margin-top: 20px">我们的模板库域名已经更换为 <span style="color:red;">http://muban.hulingweb.cn</span></div>
                <div class="jump-content">请注意修改您的浏览器收藏夹等相关内容哦。</div>
                <div class="jump-tips" style="margin-bottom: 20px">10秒后自动跳转</div>
                <a class="jump-button" href="http://muban.hulingweb.cn/">立即前往</a>
            </div>
        </div>
    </body>
    <script>
        window.onload = function() {
            var tip = document.querySelector('.jump-tips')
            var count = 10
            var i = setInterval(function() {
                count--
                if(count > 0) {
                    tip.innerText = count + '秒后自动跳转'
                }else {
                    clearInterval(i)
                    location.href = 'http://muban.hulingweb.cn/'
                }
            },1000)
        }
    </script>
    </html>
     
如没特殊注明,文章均为狐灵科技原创,转载请注明  https://www.hulingweb.cn/hulianwang/934.html
多一份免费策划方案,总有益处。

请直接添加技术总监微信联系咨询

网站设计 品牌营销

多一份参考,总有益处

联系狐灵科技,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

业务热线:023-68168040 / 大客户专线:15523356218