网站手机浏览器打开代码

本文阅读 1 分钟
首页 源码 正文

wxts.png

      <!-- 从这里开始复制 放到页面中body开始标签下面即可-->
    <div id="zs">
        <img src="/images/wxts.png" alt="">
        <!-- 如果无需关闭删掉这中间代码即可 -->
        
        <!-- 如果无需关闭删掉这中间代码即可 -->
    </div>
    <div id="heibg"></div>
    <style>
#zs{width: 100%;left:0px;top:0px;height:100%;text-align:center;position:fixed;z-index:99991;display:none;}
#zs img{width:100%;height: 100%;}
#heibg{position:fixed;width:100%;height:100%;left:0px;top:0px;background:#000;opacity:0.60;filter:alpha(opacity=85);z-index:99990;display:none;}
.tcclose{color:#fff;font-size:18px;text-align:left;position: absolute;left: 30px;top: 30px;}
    </style>
    <script type="text/javascript">
    window.onload = function() {
        if (isWeiXin()||isMobileQQ()) {
            document.getElementById('zs').style.display = "block";
            document.getElementById('heibg').style.display = "block";
        }
    }
    function isWeiXin() {
        var ua = window.navigator.userAgent.toLowerCase();
        if (ua.match(/MicroMessenger/i) == 'micromessenger') {
            return true;
        } else {
            return false;
        }
    };
    function isMobileQQ() {
        var ua = navigator.userAgent.toLowerCase();
        if (ua.match(/\sQQ/i) == " qq") {
            return true;
        } else {
            return false;
        }
    }
    function tcclose() {
        document.getElementById('zs').style.display = "none";
        document.getElementById('heibg').style.display = "none";
    }
    </script>
    <!-- 到这里复制结束 -->

图片素材:wxts.zip

本文来自投稿,不代表本站立场,如若转载,请注明出处:http://www.cnmini.net/index.php/archives/261/
cloudflare免费CDN注册使用教程
« 上一篇 06-06
VPS大量出现“关机”或“死机”谨慎安装锐速和BBR
下一篇 » 06-26

发表评论

成为第一个评论的人