是不是问题太简单了?大家帮帮我嘛!

解决方案 »

  1.   

    这种问题都来了…………
    哈哈期待高手的出现
      

  2.   

    这个是不是得用组件才行。顶下
      

  3.   

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>边结点测速</title>
    <body>
    <script>
    tim=1
    setInterval("tim++",100)
    b=1var autourl=new Array()
    autourl[1]="www.logoshow.net"
    autourl[2]="www.blueidea.com"
    autourl[3]="www.xxx.com"function butt(){
    document.write("<form name=autof>")
    for(var i=1;i<autourl.length;i++)document.write("<input type=text name=txt"+i+" size=10 value=测试中……> =》<input type=text name=url"+i+" size=40> =》<input type=button value=GO onclick=window.open(this.form.url"+i+".value)><br>")
    document.write("<input type=submit value=重测></form>")
    }
    butt()
    function auto(url){
    document.forms[0]["url"+b].value=url
    if(tim>200)
    {document.forms[0]["txt"+b].value="连接超时"}
    else
    {document.forms[0]["txt"+b].value="时间"+tim/10+"秒"}
    b++
    }
    function run(){for(var i=1;i<autourl.length;i++)document.write("<img src=http://"+autourl[i]+"/"+Math.random()+" width=1 height=1 onerror=auto('http://"+autourl[i]+"')>")}
    run()</script>
    </body>
    </html>//这个是测速程序,你在客户端检测各端口的速度,比较下再跳转吧