发新话题
打印

检测某个网站的链接速度

本主题由 admin 于 2008-5-17 01:22 提升

检测某个网站的链接速度

检测某个网站的链接速度:' ~4 [. Y4 V! U9 I

; |8 a+ O- X( Z3 g( \把如下代码加入<body>区域中:
* e/ S  |. E/ U8 r<script language=Javascript>$ r; C1 y! ~7 K
tim=1! C! f0 F! v: m1 ]6 f1 U
setInterval("tim++",100)' W+ i% m+ B$ G8 V5 m* I
b=1" V, D. [/ t, m% l; O' A1 L: M
var autourl=new Array()+ X6 K( R4 |4 W0 y9 Y
autourl[1]="www.njcatv.net"( Q5 `. q# v* m& w% M# }
autourl[2]="javacool.3322.net"7 T' g$ E/ m+ D5 \0 i
autourl[3]="www.sina.com.cn"9 D, t" N* x  J5 g9 [, N
autourl[4]="www.nuaa.edu.cn"
9 c/ Q, m# c3 E& h0 r# F  @6 ]$ a4 Hautourl[5]="www.cctv.com". I6 W  P' l% a) X) M4 |" H0 i- f5 A
function butt(){
1 y+ S5 T* k  t$ q9 a" Tdocument.write("<form name=autof>")
+ ?, F- ]  u% D2 w" D: z; [for(var i=1;i<autourl.length;i++)
5 z7 O4 d. f: H1 Jdocument.write("<input type=text name=txt"+i+" size=10 value="/blog/测试中......>" =》<input type=text
- d) `. {  F# Y: A* Ename=url"+i+" size=40> =》<input type=button value=GO . D) P* S7 a+ u% U/ B
# a; q/ p' S+ s' s1 }7 c$ _$ V
onclick=window.open(this.form.url"+i+".value)><br/>")) c- X& Z6 u! d$ ?" K
document.write("<input type=submit value=刷新></form>")
- b. i$ [1 _0 I& ~' H* T! a}8 k! n+ t% }( X, T7 T
butt()3 d1 W+ c9 T& t* W
function auto(url)
" W5 Y) b7 A9 N) _else4 g+ F2 A7 K: k' e
4 w1 J, _4 r# Q$ c8 C
b++1 \& d8 N7 D4 G2 u) C% f
}, M& |  u3 f/ N3 m; [* R
function run(){for(var i=1;i<autourl.length;i++)document.write("<img src=http://"+autourl+"/"+Math.random()+" width=1 height=1 7 D0 x& t( y, g2 S& a; L' Y' L

, t+ |5 q7 B% U5 {3 Sonerror=auto("http://"+autourl+"")>")}1 D& V+ J  ?2 u  ]0 I
run()</script>

TOP

发新话题
手机号码所在地查询:
Google
IP地址: