马上注册,享用更多功能,让你轻松玩转SuoLir索猎。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
使用方法: 将代码全部复制 粘贴到 网站根目录下index.php文件的顶端 注意:不要覆盖了 index.php里面的原代码,原代码保留(请尽快把样式以及 图片本地化,以防失效) 使用说明: 手机QQ内打开,会自动跳转浏览器; 微信内打开,需用用户手动跳转; 用户可选择对应浏览器; 用户可手动复制网站地址; 所有使用thinkphp框架的网站均可使用此代码; 代码 - <div align="left">$conf['qqjump']=1;if(strpos($_SERVER['HTTP_USER_AGENT'], 'QQ/')||strpos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger')!==false && $conf['qqjump']==1){$siteurl='http://'.$_SERVER['SERVER_NAME'].':'.$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];echo '</div>使用浏览器打开<div align="left">body,html{width:100%;height:100%}</div><div align="left">*{margin:0;padding:0}</div><div align="left">body{background-color:#fff}</div><div align="left">#browser img{</div><div align="left">width:50px;</div><div align="left">}</div><div align="left">#browser{</div><div align="left">margin: 0px 10px;</div><div align="left">text-align:center;</div><div align="left">}</div><div align="left">#contens{</div><div align="left">font-weight: bold;</div><div align="left">margin:-285px 0px 10px;</div><div align="left">text-align:center;</div><div align="left">font-size:20px;</div><div align="left">margin-bottom: 125px;</div><div align="left">}</div><div align="left">.top-bar-guidance{font-size:15px;color:#fff;height:70%;line-height:1.8;padding-left:20px;padding-top:20px;background:url(//gw.alicdn.com/tfs/TB1eSZaNFXXXXb.XXXXXXXXXXXX-750-234.png) center top/contain no-repeat}</div><div align="left">.top-bar-guidance .icon-safari{width:25px;height:25px;vertical-align:middle;margin:0 .2em}</div><div align="left">.app-download-tip{margin:0 auto;width:290px;text-align:center;font-size:15px;color:#2466f4;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAcAQMAAACak0ePAAAABlBMVEUAAAAdYfh+GakkAAAAAXRSTlMAQObYZgAAAA5JREFUCNdjwA8acEkAAAy4AIE4hQq/AAAAAElFTkSuQmCC) left center/auto 15px repeat-x}</div><div align="left">.app-download-tip .guidance-desc{background-color:#fff;padding:0 5px}</div><div align="left">.app-download-btn{display:block;width:214px;height:40px;line-height:40px;margin:18px auto 0 auto;text-align:center;font-size:18px;color:#2466f4;border-radius:20px;border:.5px #2466f4 solid;text-decoration:none}</div><div align="left">点击右上角<img src="http://gw.alicdn.com/tfs/TB1xwiUNpXXXXaIXXXXXXXXXXXX-55-55.png" border="0" alt="">Safari打开</div><div align="left">可以继续浏览本站哦~</div>
- <div align="left">1.防止腾讯屏蔽本站链接</div><div align="left">2.建议用QQ浏览器打开效果最佳</div><div align="left">3.您也可以百度搜索关键字:5G云源码分享网</div>
- <div align="center"><img src="https://img-blog.csdnimg.cn/img_convert/655f3641d95620fc3c372afff5278f7d.png" border="0" alt=""></div><div align="center"><img src="https://img-blog.csdnimg.cn/img_convert/479c10ae28d2461c1744122763c07af8.png" border="0" alt=""></div><div align="center"><img src="https://img-blog.csdnimg.cn/img_convert/f75951b59b458437ac2aab25c1eded57.png" border="0" alt=""></div><div align="center"><img src="https://img-blog.csdnimg.cn/img_convert/9bd814fa70784a547e045e481451fa1c.png" border="0" alt=""></div><div align="center"><img src="https://img-blog.csdnimg.cn/img_convert/e31a157691f8bcc582d5dd2b6a648448.png" border="0" alt=""></div><div align="center"><img src="https://img-blog.csdnimg.cn/img_convert/663babe79fe5aa19e176281fd4280399.png" border="0" alt=""></div>
- <div align="left">点击上方图标or复制本站网址自行打开</div>
- <div align="left">点此复制本站网址</div><div align="left">new ClipboardJS(".app-download-btn");</div><div align="left">$(".app-download-btn").click(function() {</div><div align="left">layer.tips("复制成功,么么哒", ".app-download-btn", {</div><div align="left">tips: [3, "rgb(38,111,250)"],</div><div align="left">time:500</div><div align="left">});})</div>
- <div align="left">function openu(u){</div><div align="left">document.getElementById("vurl").href= u;</div><div align="left">document.getElementById("vurl").click();</div><div align="left">}</div><div align="left">var url = window.location.href;</div><div align="left">if(navigator.userAgent.indexOf("QQ/")> -1){</div><div align="left">openu("ucbrowser://"+url);</div><div align="left">openu("mttbrowser://url="+url);</div><div align="left">openu("baiduboxapp://browse?url="+url);</div><div align="left">openu("googlechrome://browse?url="+url);</div><div align="left">openu("mibrowser:"+url);</div><div align="left">openu("taobao://"+url.split("://")[1]);</div><div align="left">openu("alipays://platformapi/startapp?appId=20000067&url="+url);</div><div align="left">$("html").on("click",function(){</div><div align="left">openu("ucbrowser://"+url);</div><div align="left">openu("mttbrowser://url="+url);</div><div align="left">openu("baiduboxapp://browse?url="+url);</div><div align="left">openu("googlechrome://browse?url="+url);</div><div align="left">openu("mibrowser:"+url);</div><div align="left">openu("taobao://"+url.split("://")[1]);</div><div align="left">openu("alipays://platformapi/startapp?appId=20000067&url="+url);</div><div align="left">});</div><div align="left">}else if(navigator.userAgent.indexOf("MicroMessenger") > -1){</div><div align="left">if(navigator.userAgent.indexOf("Android") > -1){</div><div align="left">var iframe = document.createElement("iframe");</div><div align="left">iframe.style.display = "none";</div><div align="left">document.body.appendChild(iframe);</div><div align="left">}else{</div><div align="left">}</div><div align="left">}</div><div align="left">';exit; } ?></div>
复制代码
原文地址:https://blog.csdn.net/weixin_42467374/article/details/116525815
|