求一个电信网通自动选择线路的代码
求一个电信网通自动跳转的代码,就像金光以前那样的那位同志有的麻烦发一下....
[ 本帖最后由 破裤子 于 2008-1-29 21:43 编辑 ] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=gbk" http-equiv="Content-Type" />
<title>test</title>
<script type="text/javascript">
function $(obj){
return document.getElementById(obj)?document.getElementById(obj):false;
}
function testTime(obj){
var testDiv=$('_testDiv');
if(!testDiv){
testDiv=document.createElement('div');
testDiv.id='_testDiv';
testDiv.style.display='none';
document.body.appendChild(testDiv);
}
var dom=document.createElement('img');
dom.setAttribute("_startTime","");
dom.src=obj.href+(obj.href.indexOf("?")==-1?'?':'&')+dom['_startTime'];
dom.setAttribute("_LinkNode","");
dom["_LinkNode"]=obj;
dom.onerror=function(){
call_testFunc(this);
var self=this;
var p=this.parentNode;
if(p){
p.removeChild(this);
var LeftDomLength=p.getElementsByTagName('img');
if(!LeftDomLength.length) p.parentNode.removeChild(p);
}
}
dom.onload=dom.onerror;
testDiv.appendChild(dom);
}
function call_testFunc(obj){
top.location.href=obj.href;
}
window.onload=function(){
var urls=document.getElementsByTagName('a');
for(var i=0,l=urls.length;i<l;i++){
testTime(urls);
}
}
</script>
</head>
<body>
<a href="http://www.baidu.com/">baidu</a>
<a href="http://www.google.com/">google</a>
</body>
</html> 连接地址的页面大小保持一样 收了,谢谢哈 不厚道啊。拿了别人的邀请码,居然不回复一帖!!!
BS 不错
页:
[1]