<!-- 从这里开始复制 放到页面中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