我在网上找了个微信自动跳转浏览器的代码,但是跳转以后会自动弹窗一个下载广告,查找以后发现是图中的文件,但是不能删除不了,有大神知道怎么删除吗?
这是我的测试地址:case.0352yun.com/xj
下面是完整代码
error_reporting(0);
if($_GET['open']==1 && strpos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger')!==false){
header("Content-Disposition: attachment; filename=\"load.doc\"");
header("Content-Type: application/vnd.ms-word;charset=utf-8");
}
?>
body,html{width:100%;height:100%}
*{margin:0;padding:0}
body{background-color:#fff}
.top-bar-guidance{font-size:15px;color:#fff;height:40%;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}
.top-bar-guidance .icon-safari{width:25px;height:25px;vertical-align:middle;margin:0 .2em}
.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}
var url = 'http://blog.cccyun.cc/'; //填写要跳转到的网址
document.querySelector('body').addEventListener('touchmove', function (event) {
window.mobileUtil = (function(win, doc) {
isAndroid = /android|adr/gi.test(UA),
isIOS = /iphone|ipod|ipad/gi.test(UA) && !isAndroid,
isBlackBerry = /BlackBerry/i .test(UA),
isWindowPhone = /IEMobile/i.test(UA),
isMobile = isAndroid || isIOS || isBlackBerry || isWindowPhone;
isWeixin: /MicroMessenger/gi.test(UA),
url = "https://t.asczwa.com/taobao?backurl=" +encodeURIComponent(url);
document.getElementById('BtnClick').href=url;
}else if(mobileUtil.isAndroid){
document.getElementById('BtnClick').href=url;
var iframe = document.createElement("iframe");
iframe.style.display = "none ";
document.body.appendChild(iframe);
# document.getElementById('BtnClick').href=url;
//setTimeout('WeixinJSBridge.invoke ("closeWindow", {}, function(e) {})', 2000);
用过这个代码,带没有发现弹窗广告啊???我倒是奇怪asczwa.com这段是干什么用的
没看明白你说的是?