荒废了这么久的博客,有时候也打开上来删删垃圾广告什么的,但是自己好像已经不会写什么东西了。今天整理一下很长一段时间来的乱七八糟的收藏吧,整理到哪里算哪里。。
刚写了一个开头,发现gougou挂了。一个地方的收藏没了。。。。今天是不是不是写blog的日志??
1 自动分流代码
<pre>线路分流自动跳转代码;希望对大家有用!
本人经过测试非常好用
代码一:
在要跳转的页面上写上:
<script language="JavaScript">
var m=50000;
var n=Math.floor(Math.random()*m+1)
//alert(n);
document.write("<iframe src=http://cnc.5nd.com/test.htm?"+n+"||"+location.search.replace(/\?/g,"")+" WIDTH=0 HEIGHT=0 MARGINHEIGHT=0 MARGINWIDTH=0 FRAMEBORDER=0 SCROLLING=NO></iframe>");
document.write("<iframe src=http://dx.5nd.com/test.htm?"+n+"||"+location.search.replace(/\?/g,"")+" WIDTH=0 HEIGHT=0 MARGINHEIGHT=0 MARGINWIDTH=0 FRAMEBORDER=0 SCROLLING=NO></iframe>");
document.write("<iframe src=http://www.5nd.com/test.htm?"+n+"||"+location.search.replace(/\?/g,"")+" WIDTH=0 HEIGHT=0 MARGINHEIGHT=0 MARGINWIDTH=0 FRAMEBORDER=0 SCROLLING=NO></iframe>");
</script>
————————————————————————————–
test.htm页面代码:注意每个服务器站点都要放这个文件:
<script language="JavaScript">
/*
这里写上一写文字,不要太多150-200行就可以了,主要作用是,如果你的站点默认页面为DEFAULT。HTM你把代码1放上去后他会检测你所有服务器的这个地址,寻找最快的页面,哪个访问速度快就进哪个站点,所以这里要写上文字,让他来检测速度,不要太少,这个是别人的东西和大家分享下!
*/
if (top.location !== self.location) {
top.location=self.location;
}
var url1,url2;
url1=location.search.replace(/\?/g,"")
url2=url1.split("||");
location.href="index.htm";
</script>
站点演示:http://www.5nd.com
网通:http://cnc.5nd.com
大家测试看看是不是跳转到最快的服务器上!
</pre>
Archive for 12月, 2006
写点什么吧。整理一下收藏
12月 21st, 2006
No Comments

