[ 2007/08/06 10:54 | by 孤城浪子 ]
方法如下:
1、先把你的域名解析了(如我的 gclz.cn 解析到电信IP上 www.gclz.cn 解析到网通IP上)
2、然后在网站根目录建立一个index.asp文件(index.asp这个文件要在[修改默认首页]中设置最优先,
我的顺序是index.asp,default.asp,index.php,default.php,index.aspx,index.htm,default.htm,你只要填入你自己常用的默认首页就可以)
3、index.asp文件的内容为以下代码(把里面的网址和网站名称改成你自己的就可以了),这样它会选择访客访问速度最快的站点了(页面非常简单,自己可以美工一下):
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<meta http-equiv="refresh" content="10;url=./">
<title>孤城浪子的地盘</title>
</head>
<body>
<center>
<p>
<font color=red size=3>线路选择中,请稍候……</font>
</p>
<br>
<div algin=center><a href="http://gclz.cn/Index.html">电信</a> | <a href="http://www.gclz.cn/Index.html">网通</a></div>
<script>
i=1
var autourl=new Array()
autourl[1]="http://gclz.cn/Index.html"
autourl[2]="http://www.gclz.cn/Index.html"
function auto(url){if(i){i=0;top.location=url}}
function run(){
for(var i=1;i < autourl.length;i++)
{
document.write("<img src="+autourl[i]+" width=1 height=1 onerror=auto('"+autourl[i]+"')>")
}
}
run()
</script>
</body>
</html>
1、先把你的域名解析了(如我的 gclz.cn 解析到电信IP上 www.gclz.cn 解析到网通IP上)
2、然后在网站根目录建立一个index.asp文件(index.asp这个文件要在[修改默认首页]中设置最优先,
我的顺序是index.asp,default.asp,index.php,default.php,index.aspx,index.htm,default.htm,你只要填入你自己常用的默认首页就可以)
3、index.asp文件的内容为以下代码(把里面的网址和网站名称改成你自己的就可以了),这样它会选择访客访问速度最快的站点了(页面非常简单,自己可以美工一下):
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<meta http-equiv="refresh" content="10;url=./">
<title>孤城浪子的地盘</title>
</head>
<body>
<center>
<p>
<font color=red size=3>线路选择中,请稍候……</font>
</p>
<br>
<div algin=center><a href="http://gclz.cn/Index.html">电信</a> | <a href="http://www.gclz.cn/Index.html">网通</a></div>
<script>
i=1
var autourl=new Array()
autourl[1]="http://gclz.cn/Index.html"
autourl[2]="http://www.gclz.cn/Index.html"
function auto(url){if(i){i=0;top.location=url}}
function run(){
for(var i=1;i < autourl.length;i++)
{
document.write("<img src="+autourl[i]+" width=1 height=1 onerror=auto('"+autourl[i]+"')>")
}
}
run()
</script>
</body>
</html>
|
自从国内电信和网通剥离之后,在中国大地上,南北网络的瓶颈问题也越来越让广大网民痛心疾首。南北网络的瓶颈怪现象有愈演愈烈的趋势,严重困扰着广大站长和网络内容、服务提供商。南北分家不论各主管部门有多少良好设想,但目前的现状是搬起石头砸自己的脚。重复建设、端口限制等等,使互联网的使用环境和基础演变得让人莫名其妙。出现此现象是中国互联网的一大退步,如何解决愈演愈烈的南北网络的瓶颈问题,成了一个急需解决的重要课题。 |