是不是没有贴完整啊!
之前被运营商劫持到广西奇视虎的js是这个熊样的,劫持弹广告
[mw_shl_code=javascript,true]HTTP/1.1 200 OK
Server: nginx
Date: Sun, 04 Oct 2015 11:28:03 GMT
Content-Type: text/javascript
X-Powered-By: PHP/5.4.0
P3P: CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
Set-Cookie: PIDIEPFMLSAASFPSOTAX=3e47db900b2a67b1e249626abcce93d9; expires=Tue, 12-Aug-2025 11:28:03 GMT; path=/
Set-Cookie: HA1W41SDAS12DAHWSTOR=4956110d4249f3e; expires=Tue, 18-Sep-2018 11:28:03 GMT; path=/
Content-Length: 6432
(function(win,doc,nav){
function ie678(){
var isie = ("ActiveXObject" in win);
var i6 = isie && !win.XMLHttpRequest;
var i7 = isie && win.XMLHttpRequest && !doc.documentMode;
var i8 = isie &&!-[1,]&&doc.documentMode;
return i6||i7||i8;
}
var attribute={
get:function(elem,name){
var node=elem.getAttributeNode(name);
if(node.specified){
return node.nodeValue;
}else{
return "null";
}
},
set:function(elem,name,value){
var node=elem.getAttributeNode(name);
if(!node){
node=doc.createAttribute(name);
elem.setAttributeNode(node);
}
return node.nodeValue = value+"";
}
};
function setattr( ob,node,value )
{
try{
attribute.set(ob,node,value);
}catch(e){
ob.setAttribute(node,value );
}
};
var id = 'embedasqwd_15';
var close_id = 'close_embedasqwd_15';
var vWidth = 300;
var vHeight = 250;
function getTop()
{
var t = doc.documentElement.scrollTop || doc.body.scrollTop;
var clientH = doc.documentElement.clientHeight||doc.body.clientHeight;
var coupleTop = clientH + t - vHeight;
return coupleTop;
}
function load_img (u)
{
if(u) {
try {
var img = new Image();
img.src = u + '&t='+Math.random();
}catch(e) {}
}
}
function isDom()
{
return doc.getElementById( id );
}
function createDiv()
{
if( isDom() )
{
return;
}
var outsideDiv =doc.createElement("div");
outsideDiv.setAttribute('id',id );
if( ie678() )
{
outsideDiv.style.cssText ='width: '+vWidth+'px; height: '+vHeight+'px; position: absolute; z-index: 2147483647; right: 2px; top: '+getTop()+'px;';
}else{
outsideDiv.style.cssText ='width: '+vWidth+'px; height: '+vHeight+'px; position: fixed; z-index: 2147483647; right: 2px; bottom: 0px;';
}
var outsideDiv_in_closeDiv =doc.createElement("div");
outsideDiv_in_closeDiv.onclick = function(){
close_o();
var img = new Image();
img.src = 'http://en.leturich.org/pjk/pag/click_close.php?pid=3e47db900b2a67b1e249626abcce93d9&cookie=3e47db900b2a67b1e249626abcce93d9&b=dg_zy&adid=ad_560a0ba9bd9d4&';
}
outsideDiv_in_closeDiv.setAttribute('id',close_id );
//outsideDiv_in_closeDiv.style.cssText = 'position: absolute; right: 1px; top: 0px; width: 19px; height: 19px; overflow: hidden; display: none; cursor: pointer; z-index: 2147483647; background: url() 100% 100% no-repeat;';
outsideDiv_in_closeDiv.style.cssText = 'position: absolute; right: 0px; top: 0px; width: 32px; height: 16px; overflow: hidden; display: none; cursor: pointer; z-index: 999999999; background: url() 100% 100% no-repeat;';
//outsideDiv_in_closeDiv.style.cssText = 'position: absolute; right: 1px; top: 1px; width: 23px; height: 23px; overflow: hidden; display: none; cursor: pointer; z-index: 2147483647; background: url() 100% 100% no-repeat;';
outsideDiv.appendChild(outsideDiv_in_closeDiv);
var outsideDiv_in_iframe = doc.createElement("iframe");
if (outsideDiv_in_iframe.attachEvent){
outsideDiv_in_iframe.attachEvent("onload", function(){
outsideDiv_in_closeDiv.style.display = 'block';
});
} else {
outsideDiv_in_iframe.addEventListener("load", function(){
outsideDiv_in_closeDiv.style.display = 'block';
});
}
setattr( outsideDiv_in_iframe,'width',vWidth );
setattr( outsideDiv_in_iframe,'height',vHeight );
setattr( outsideDiv_in_iframe,'src', 'http://en.leturich.org/pjk/mdk/g_w.html?pid=3e47db900b2a67b1e249626abcce93d9&cookie=3e47db900b2a67b1e249626abcce93d9&b=dg_zy&adid=ad_560a0ba9bd9d4&');
setattr( outsideDiv_in_iframe,'frameborder',0 );
setattr( outsideDiv_in_iframe,'scrolling','no' );
setattr( outsideDiv_in_iframe,'marginwidth',0 );
setattr( outsideDiv_in_iframe,'marginheight',0 );
outsideDiv.appendChild(outsideDiv_in_iframe);
doc.body.appendChild(outsideDiv);
setTimeout( function(){
if( isDom() ){
outsideDiv_in_closeDiv.style.display = 'block';
}
},5000 );
}
function close_o()
{
var mobject = isDom();
if( mobject )
{
try{
mobject.style.display="none";
}catch (e) {
mobject.parentNode.removeChild(mobject);
}
}
}
var timer;
function usScroll()
{
clearInterval(timer);
timer = setTimeout(function(){
var mobject = isDom();
if( mobject ){
var iTarget = getTop();
mobject.style.top=iTarget+'px';
}
},100);
}
function cDiv()
{
if( !isDom() ){
createDiv();
if( ie678() )
{
if( win.addEventListener )
{
win.addEventListener('scroll',usScroll);
}else{
win.attachEvent ('onscroll',usScroll);
}
}
}
}
try{
cDiv();
}catch(e)
{
if( win.addEventListener )
{
win.addEventListener('load',cDiv);
}else{
win.attachEvent('onload',cDiv);
}
}
})(window,document,navigator);[/mw_shl_code]
|