Please God, the pop-up window code cannot be deleted
2018-04-09 13:23:03
0
2
1746

I found a code on the Internet for WeChat to automatically jump to the browser, but after jumping, a download advertisement will automatically pop up. After searching, I found that it is the file in the picture, but it cannot be deleted. Does anyone know how to delete it? ?

微信图片_20180409113420.png

This is my test address: case.0352yun.com/xj

The following is the complete code

<?php

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");

}

?>

<!DOCTYPE html>

<html>

< ;head>

<meta charset="UTF-8">

<title>Welcome</title>

<meta content="width= device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport"/>

<meta content="yes" name="apple-mobile -web-app-capable"/>

<meta content="black" name="apple-mobile-web-app-status-bar-style"/>

<meta name="format-detection" content="telephone=no"/>

<meta content="false" name="twcClient" id="twcClient"/>

<style>

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}

</style>

</head>

<body>

<div class="top-bar-guidance"> ;

<p>Click the upper right corner<img src="//gw.alicdn.com/tfs/TB1xwiUNpXXXXaIXXXXXXXXXXXX-55-55.png" class="icon-safari" /> Open Safari </p>

<p>You can continue to visit this site~</p>

</div>

<a class="app-download-btn" id="BtnClick" href="javascript:;">

Click here to continue visiting

< ;/a>

<script>

var url = 'http://blog.cccyun.cc/'; //Fill in the URL you want to jump to URL

document.querySelector('body').addEventListener('touchmove', function (event) {

event.preventDefault();

});

window.mobileUtil = (function(win, doc) {

var UA = navigator.userAgent,

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;

return {

isAndroid : isAndroid,

isIOS: isIOS,

isMobile: isMobile,

isWeixin: /MicroMessenger/gi.test(UA),

isQQ: / QQ/gi.test(UA)

};

})(window, document);

if(mobileUtil.isWeixin){

if(mobileUtil.isIOS){

url = "https://t.asczwa.com/taobao?backurl=" encodeURIComponent(url);

document.getElementById ('BtnClick').href=url;

}else if(mobileUtil.isAndroid){

url = '?open=1';

document.getElementById( 'BtnClick').href=url;

var iframe = document.createElement("iframe");

iframe.style.display = "none";

iframe .src = url;

document.body.appendChild(iframe);

}

}else{

document.getElementById('BtnClick') .href=url;

window.location.replace(url);

}

//setTimeout('WeixinJSBridge.invoke("closeWindow", {}, function (e) {})', 2000);

</script>

</body>

</html>


reply all(2)
Enforcer本杰明·富兰克林

Have you ever used this code, have you found any pop-up ads? ? ? I'm curious as to what the asczwa.com section is for

猪哥

Didn’t understand what you said?

  • reply This is a code that opens the website on WeChat QQ and jumps to the browser. However, after jumping to the browser, there will be a download pop-up window. I would like to ask if I can cancel the download pop-up window.
    author 2018-04-09 18:08:36
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template