VimIy微民网,让世界倾听微民的声音! 设为首页 | 加入收藏 | 网站地图
当前位置:主页 > 大杂烩 >

和 nav.js 被劫持了

整理时间:2014-01-16 05:45 来源:www.vimiy.com 作者:编辑 点击:

【楼主】2014-01-17 12:43

» http://www.178.com/s/footer.js 和 nav.js 被劫持了
    最后被人加上了这么一段:
    
    var readyStateCheckInterval = setInterval(function() {
     if (document.readyState === "complete") {
     if (window.top != window.self || window.opener) {
     return;
     }
     if (document.getElementById('a1tjs2t') != null) {
     return;
     }
     var e = document.createElement("div");
     e.id = "loadrightbottom";
     e.style.zIndex = 2147483646;
     e.style.width = 340;
     e.style.height = 230;
     e.innerHTML = '<a href="http://ms.awo.cn/res/344.html" target="_blank"><img src="http://img1.awo.cn/UpFile/Images/201401148532.jpg" border="0"/></a>';
     var t = document.createElement("style");
     t.type = "text/css";
     if (t.styleSheet) {
     t.styleSheet.cssText = "#loadrightbottom {position:fixed!important;position:absolute;right:0;bottom:0;top:expression((offsetParent!=null)?(offsetParent.scrollTop+offsetParent.clientHeight-" + (this.adheight + 10) + "):'');cursor:pointer;} #loadrightbottomclose {position:absolute;margin:0px;padding:0px;overflow:hidden;width:39px;height:13px;top:0px;right:0;bottom:0;cursor:pointer;} "
     } else {
     t.appendChild(document.createTextNode("#loadrightbottom {position:fixed!important;position:absolute;right:0;bottom:0;top:expression(offsetParent.scrollTop+offsetParent.clientHeight-" + (this.adheight + 10) + ");cursor:pointer;} #loadrightbottomclose {position:absolute;margin:0px;padding:0px;overflow:hidden;width:39px;height:13px;top:0px;right:0;bottom:0;cursor:pointer;}"))
     }
     closebtn = document.createElement("div");
     closebtn.id = "loadrightbottomclose";
     closebtn.style.zIndex = 2147483647;
     closebtn.style.border = 1;
     closespan = document.createElement("div");
     closespan.style.styleFloat = "right";
     this.closespan.style.clear = "right";
     closespan.style.margin = "0px";
     this.closespan.style.padding = "0px";
     closespan.style.width = "39px";
     closespan.style.height = "13px";
     closespan.style.cursor = "pointer";
     closespan.style.background = "url(http://drmcmm.baidu.com/js/img/close.gif) no-repeat scroll 0px -20px";
     closespan.onmouseover = function() {
     this.style.backgroundPosition = "0 0"
     };
     closespan.onmouseout = function() {
     this.style.backgroundPosition = "0px -20px"
     };
     closespan.onclick = function() {
     closebtn.style.display = "none";
     e.parentNode.removeChild(e)
     };
     closebtn.appendChild(closespan);
     e.appendChild(closebtn);
     document.body.appendChild(t);
     document.body.appendChild(e);
     clearInterval(readyStateCheckInterval)
     }
    }, 10);
    
    
    然后 footer.js 和 nav.js 都被加了,clearInterval 只清了一个。打开 nga 一会就卡到吐血。。。。你有广告就算了,不要这么卡啊。。太没技术含量了啊。靠。
    
    话说我是杭州华数宽带就有这么一段, 我在自家服务器上下载这两个js就没有。。。是某个节点被干了么?
    

    
    
    

上一篇:绝对好停车。
下一篇:没有了
关于网站 | 网站声明 | 用户反馈 | 合作伙伴 | 联系我们
Copyright 2012年2月8日 苏ICP备12030052号-3