⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 speed.asp

📁 动网论坛源代码
💻 ASP
字号:
<HTML><HEAD><TITLE>测试您的上网连接速度</TITLE>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<META content="上网测速" name=description>
<script language=javascript>
<!--

time = new Date();

starttime = time.getTime();

// -->
</script>
<script>

<!--

time = new Date();

endtime = time.getTime();

if (endtime == starttime)

 {downloadtime = 0

 }

else

 {downloadtime = (endtime - starttime)/1000;

 }


if (downloadtime == 0)

 {downloadtime = .1;

  nextsize = 50;

 }

else if (downloadtime < .2)

 {nextsize = 500;

 }

else

 {

  nextsize = 50;

 }



kbytes_of_data = 50; // data file size

linespeed = kbytes_of_data/downloadtime;

kbps = (Math.round((linespeed*8)*10*1.02))/10;

kbytes_sec = (Math.round((kbytes_of_data*10)/downloadtime))/10;

dltime_add10 = Math.round((kbytes_of_data*1.15)/kbytes_sec);

dltime_sub10 = Math.round((kbytes_of_data*0.85)/kbytes_sec);

// -->

</script>
<script language=javascript> var d, s,sec;
d = new Date();
//sec=d.getSeconds();
//d.setSeconds(sec+20);
//sec=d.getMinutes();
//d.setMinutes(sec+2);
s = d.toGMTString();
document.write("<META HTTP-EQUIV=\"expires\" CONTENT=\""+s+"\">");
//document.write(s);</script>
</HEAD>
<BODY aLink=#808000 bgColor=#ffffff link=#336699 vLink=#6699cc><A
name=TopOfPage></A><A name=top></A>
<DIV align=center>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=700>
<TBODY>
<TR>
</P></TD>
</TR></TBODY></TABLE></DIV>
<DIV align=center>
<TABLE border=1 borderColor=#5972ff borderColorDark=#b5c0ff
borderColorLight=#001279 cellPadding=3 cellSpacing=0 width=700>
<TBODY>
<TR>
<CENTER>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=650>
<TBODY>
<TR>
<TD colSpan=3></TR> <BLOCKQUOTE>
<BLOCKQUOTE>
<P class=bodytitle>测试您的上网连接速度</P>
</script>

<DIV align=center>
<CENTER>
<p></p>
<TABLE border=0 cellPadding=0 cellSpacing=0>
<TBODY>
<TR>
<TD>
<P align=center class=titleleft>您连的速度为:</P><B>
<P align=center class=centertitle><FONT color=#ff00ff>
<script>
<!--
document.write(kbps);
//-->
</script>
</FONT></B>Kbps</P><B>
<P align=center class=centertitle><FONT color=#ff00ff>
<script>
<!--
document.write(kbytes_sec);
//-->
</script>
</FONT></B>K 字节/秒</P> 
<TABLE align=right border=0 cellPadding=0 cellSpacing=0 
width=156> 
<TBODY> 
<TR> 
<TD colSpan=5 vAlign=top> 
<P align=center class=maintext><B><FONT 
color=#6699cc>速度测试温度计</FONT></B></P></TD></TR> 
<TR> 
<TD vAlign=top width="40%"> 
<P align=right><FONT size=2>溢</FONT><FONT 
size=2>出</FONT></P></TD> 
<TD vAlign=bottom width="7%"><B> 
<P>-</B></P></TD> 
<script><!-- 

if (kbps < 2900 ) document.write ('<TD WIDTH="6%" VALIGN="BOTTOM" BGCOLOR="#c0c0c0">') 

else document.write ('<TD WIDTH="6%" VALIGN="BOTTOM" BGCOLOR="#ff0000">') 

// --> 

</script> 
<B> 
<P>-</B> 
<TD vAlign=bottom width="8%"><B> 
<P>-</B></P></TD> 
<TD vAlign=bottom width="39%"> </TD></TR> 
<TR> 
<TD vAlign=bottom width="40%"><FONT face=Arial size=2> 
<P align=right></FONT></P></TD> 
<TD vAlign=bottom width="7%"><B> 
<P>-</B></P></TD> 
<script><!-- 

if (kbps < 2400 ) document.write ('<TD WIDTH="6%" VALIGN="BOTTOM" BGCOLOR="#c0c0c0">') 

else document.write ('<TD WIDTH="6%" VALIGN="BOTTOM" BGCOLOR="#ff0000">') 

// --> 

</script> 
<B> 
<P>-</B> 
<TD vAlign=bottom width="8%"><B> 
<P>-</B></P></TD> 
<TD vAlign=bottom width="39%"> 
<P><FONT size=2>T-2</FONT></P></TD></TR> 
<TR> 
<TD vAlign=bottom width="40%"> 
<P align=right> <FONT size=2>2Mbps</FONT></P></TD> 
<TD vAlign=bottom width="7%"><B> 
<P>-</B></P></TD> 
<script><!-- 

if (kbps < 1900 ) document.write ('<TD WIDTH="6%" VALIGN="BOTTOM" BGCOLOR="#c0c0c0">') 

else document.write ('<TD WIDTH="6%" VALIGN="BOTTOM" BGCOLOR="#ff0000">') 

// --> 

</script> 
<B> 
<P>-</B> 
<TD vAlign=bottom width="8%"><B> 
<P>-</B></P></TD> 
<TD vAlign=bottom width="39%"> </TD></TR> 
<TR> 
<TD vAlign=bottom width="40%"> 
<P> </P></TD> 
<TD vAlign=bottom width="7%"><B> 
<P>-</B></P></TD> 
<script><!-- 

if (kbps < 1649 ) document.write ('<TD WIDTH="6%" VALIGN="BOTTOM" BGCOLOR="#c0c0c0">') 

else document.write ('<TD WIDTH="6%" VALIGN="BOTTOM" BGCOLOR="#ff0000">') 

// --> 

</script> 
<B> 
<P>-</B> 
<TD vAlign=bottom width="8%"><B> 
<P>-</B></P></TD> 
<TD vAlign=bottom width="39%"> </TD></TR> 
<TR> 
<TD vAlign=bottom width="40%"> 
<P align=right> <FONT size=2>1.5Mbps</FONT></P></TD> 
<TD vAlign=bottom width="7%"><B> 
<P>-</B></P></TD> 
<script><!-- 

if (kbps < 1399 ) document.write ('<TD WIDTH="6%" VALIGN="BOTTOM" BGCOLOR="#c0c0c0">') 

else document.write ('<TD WIDTH="6%" VALIGN="BOTTOM" BGCOLOR="#ff0000">') 

// --> 

</script> 
<B> 
<P>-</B> 
<TD vAlign=bottom width="8%"><B> 
<P>-</B></P></TD> 
<TD vAlign=bottom width="39%"> 
<P><FONT size=2>T-1</FONT></P></TD></TR> 
<TR> 
<TD vAlign=bottom width="40%"> </TD> 
<TD vAlign=bottom width="7%"><B> 
<P>-</B></P></TD> 
<script><!-- 

if (kbps < 1149) document.write ('<TD WIDTH="6%" VALIGN="BOTTOM" BGCOLOR="#c0c0c0">') 

else document.write ('<TD WIDTH="6%" VALIGN="BOTTOM" BGCOLOR="#ff0000">') 

// --> 

</script> 
<B> 
<P>-</B> 
<TD vAlign=bottom width="8%"><B> 
<P>-</B></P></TD> 
<TD vAlign=bottom width="39%"> </TD></TR> 
<TR> 
<TD vAlign=bottom width="40%"> 
<P align=right> <FONT size=2>1Mbps</FONT></P></TD> 
<TD vAlign=bottom width="7%"><B> 
<P>-</B></P></TD> 
<script><!-- 

if (kbps < 950 ) document.write ('<TD WIDTH="6%" VALIGN="BOTTOM" BGCOLOR="#c0c0c0">') 

else document.write ('<TD WIDTH="6%" VALIGN="BOTTOM" BGCOLOR="#ff0000">') 

// --> 

</script> 
<B> 
<P>-</B> 
<TD vAlign=bottom width="8%"><B> 
<P>-</B></P></TD> 
<TD vAlign=bottom width="39%"> </TD></TR> 
<TR> 
<TD vAlign=bottom width="40%"> 
<P> </P></TD> 
<TD vAlign=bottom width="7%"><B> 
<P>-</B></P></TD> 
<script><!-- 

if (kbps < 699 ) document.write ('<TD WIDTH="6%" VALIGN="BOTTOM" BGCOLOR="#c0c0c0">') 

else document.write ('<TD WIDTH="6%" VALIGN="BOTTOM" BGCOLOR="#ff0000">') 

// --> 

</script> 
<B> 
<P>-</B> 
<TD vAlign=bottom width="8%"><B> 
<P>-</B></P></TD> 
<TD vAlign=bottom width="39%"> </TD></TR> 
<TR> 
<TD vAlign=bottom width="40%"> 
<P align=right><FONT size=2>500Kbps</FONT></P></TD> 
<TD vAlign=bottom width="7%"><B> 
<P>-</B></P></TD> 
<script><!-- 

if (kbps < 450 ) document.write ('<TD WIDTH="6%" VALIGN="BOTTOM" BGCOLOR="#c0c0c0">') 

else document.write ('<TD WIDTH="6%" VALIGN="BOTTOM" BGCOLOR="#ff0000">') 

// --> 



</script> 
<B> 
<P>-</B> 
<TD vAlign=bottom width="8%"><B> 
<P>-</B></P></TD> 
<TD vAlign=bottom width="39%"> </TD></TR> 
<TR> 
<TD vAlign=bottom width="40%"> 
<P> </P></TD> 
<TD vAlign=bottom width="7%"><B> 
<P>-</B></P></TD> 
<script><!-- 

if (kbps < 300 ) document.write ('<TD WIDTH="6%" VALIGN="BOTTOM" BGCOLOR="#c0c0c0">') 

else document.write ('<TD WIDTH="6%" VALIGN="BOTTOM" BGCOLOR="#ff0000">') 

// --> 

</script> 
<B> 
<P>-</B> 
<TD vAlign=bottom width="8%"><B> 
<P>-</B></P></TD> 
<TD vAlign=bottom width="39%"> </TD></TR> 
<TR> 
<TD vAlign=bottom width="40%"> 
<P align=right><FONT size=2>200Kbps</FONT></P></TD> 
<TD vAlign=bottom width="7%"><B> 
<P>-</B></P></TD> 
<script><!-- 

if (kbps < 175 ) document.write ('<TD WIDTH="6%" VALIGN="BOTTOM" BGCOLOR="#c0c0c0">') 

else document.write ('<TD WIDTH="6%" VALIGN="BOTTOM" BGCOLOR="#ff0000">') 

// --> 

</script> 
<B> 
<P>-</B> 
<TD vAlign=bottom width="8%"><B> 
<P>-</B></P></TD> 
<TD vAlign=bottom width="39%"> </TD></TR> 
<TR> 
<TD vAlign=bottom width="40%"> 
<P> </P></TD> 
<TD vAlign=bottom width="7%"><B> 
<P>-</B></P></TD> 
<script><!-- 

if (kbps < 130 ) document.write ('<TD WIDTH="6%" VALIGN="BOTTOM" BGCOLOR="#c0c0c0">') 

else document.write ('<TD WIDTH="6%" VALIGN="BOTTOM" BGCOLOR="#ff0000">') 

// --> 

</script> 
<B> 
<P>-</B> 
<TD vAlign=bottom width="8%"><B> 
<P>-</B></P></TD> 
<TD vAlign=bottom width="39%"> </TD></TR> 
<TR> 
<TD vAlign=bottom width="40%"> 
<P align=right><FONT size=2>100Kbps</FONT></P></TD> 
<TD vAlign=bottom width="7%"><B> 
<P>-</B></P></TD> 
<script><!-- 

if (kbps < 85 ) document.write ('<TD WIDTH="6%" VALIGN="BOTTOM" BGCOLOR="#c0c0c0">') 

else document.write ('<TD WIDTH="6%" VALIGN="BOTTOM" BGCOLOR="#ff0000">') 

// --> 

</script> 
<B> 
<P>-</B> 
<TD vAlign=bottom width="8%"><B> 
<P>-</B></P></TD> 
<TD vAlign=bottom width="39%"> 
<P><FONT size=2>ISDN</FONT></P></TD></TR> 
<TR> 
<TD vAlign=bottom width="40%"> 
<P align=right><FONT size=2>60Kbps</FONT></P></TD> 
<TD vAlign=bottom width="7%"><B> 
<P>-</B></P></TD> 
<script><!-- 

if (kbps < 55 ) document.write ('<TD WIDTH="6%" VALIGN="BOTTOM" BGCOLOR="#c0c0c0">') 

else document.write ('<TD WIDTH="6%" VALIGN="BOTTOM" BGCOLOR="#ff0000">') 

// --> 

</script> 
<B> 
<P>-</B> 
<TD vAlign=bottom width="8%"><B> 
<P>-</B></P></TD> 
<TD vAlign=bottom width="39%"> 
<P><FONT size=2>ISDN</FONT></P></TD></P></TR> 
<TR> 
<TD vAlign=bottom width="40%"> 
<P align=right><FONT size=2>40Kbps</FONT></P></TD> 
<TD vAlign=bottom width="7%"><B> 
<P>-</B></P></TD> 
<script><!-- 

if (kbps < 35 ) document.write ('<TD WIDTH="6%" VALIGN="BOTTOM" BGCOLOR="#c0c0c0">') 

else document.write ('<TD WIDTH="6%" VALIGN="BOTTOM" BGCOLOR="#ff0000">') 

// --> 

</script> 
<B> 
<P>-</B> 
<TD vAlign=bottom width="8%"><B> 
<P>-</B></P></TD> 
<TD vAlign=bottom width="39%"> 
<P><FONT size=2>56K</FONT></P></TD></P></TR> 
<TR> 
<TD vAlign=bottom width="40%"> 
<P align=right><FONT size=2>20Kbps</FONT></P></TD> 
<TD vAlign=bottom width="7%"><B> 
<P>-</B></P></TD> 
<script><!-- 

if (kbps < 19 ) document.write ('<TD WIDTH="6%" VALIGN="BOTTOM" BGCOLOR="#c0c0c0">') 

else document.write ('<TD WIDTH="6%" VALIGN="BOTTOM" BGCOLOR="#ff0000">') 

// --> 

</script> 
<B> 
<P>-</B> 
<TD vAlign=bottom width="8%"><B> 
<P>-</B></P></TD> 
<TD vAlign=bottom width="39%"> </TD></TR> 
<TR> 
<TD vAlign=bottom width="40%"> 
<P> </P></TD> 
<TD vAlign=bottom width="7%"> 
<P> </P></TD> 
<TD bgColor=#ff0000 vAlign=bottom width="6%"> 
<P> </P></TD> 
<TD vAlign=bottom width="8%"> 
<P> </P></TD> 
<TD vAlign=bottom width="39%"> </TD></TR> 
<TR> 
<TD vAlign=bottom width="40%"> </TD> 
<TD bgColor=#ff0000 vAlign=bottom width="7%"> </TD> 
<TD bgColor=#ff0000 vAlign=bottom width="6%"> </TD> 
<TD bgColor=#ff0000 vAlign=bottom width="8%"> </TD> 
<TD vAlign=bottom width="39%"> </TD></TR> 
<TR> 
<TD vAlign=bottom width="40%"> </TD> 
<TD bgColor=#ff0000 vAlign=bottom width="7%"> </TD> 
<TD bgColor=#ff0000 vAlign=bottom width="6%"> </TD> 
<TD bgColor=#ff0000 vAlign=bottom width="8%"> </TD> 
<TD vAlign=bottom 
width="39%"> </TD></TR></TBODY></TABLE><B> 
<P> </P></B> 
<P> 
<P> 
<P> 
<P> 
<P> <FONT face=Arial>
<P>  </P>
<P> 
</P></FONT></TD></TR></TBODY></TABLE></CENTER></DIV></BLOCKQUOTE></BLOCKQUOTE>
<HR color=#5972ff SIZE=1 width="80%"> <TR>
<TD colSpan=3></TD></TR></TBODY></TABLE></CENTER>
<DIV align=center>
<CENTER>

CNZZZ.COM提供程序</CENTER></DIV>
</BODY>
<script language=javascript>document.write("<META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\"> ");</script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -