社区
ASP
帖子详情
网页测速
tianyang1013
2005-03-04 12:21:46
我最近再写一个网站,有关软件下载的,我希望能让每个用户在线测试自己的网速和下载速度,请问大侠们这样的ASP网页怎么写?希望有原代码能让我参考,谢谢!!!!
...全文
1401
1
打赏
收藏
网页测速
我最近再写一个网站,有关软件下载的,我希望能让每个用户在线测试自己的网速和下载速度,请问大侠们这样的ASP网页怎么写?希望有原代码能让我参考,谢谢!!!!
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
1 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
德仔
2005-03-04
打赏
举报
回复
要记得多给分呀,楼主!!! :)
备一个能读秒的表,比如跑步表,这样精度高些,当然也可以使用普通的表.
首先我们测试纯文本的下载时间,打开浏览器,关闭下载图片功能,然后连接上网,在地址栏输入站点地址,回车后,计时开始,当全部文本内容下载完后,停止计时.
如果你要测试整个站点下载速度,打开图片下载功能,如果你站点含有JavaScript,也要在浏览器选择为支持,同上,打入地址,回车,计时开始,当所有内容下载完后,停止计时.
经过以上两种测试,你就会对自己站点的连接下载速度,作到心中有数了.
SCRIPT>
if (document.all&&window.spotlight) {
var x=new Array()
var direction=new Array()
var y=new Array()
if(spotlight.length==null) {
spotlight[0]=document.all.spotlight
x[0]=0
direction[0]=right
y[0]=spotlight[0].height
spotlight[0].filters.light.addPoint(100,50,100,255,255,255,90)
} else {
for (i=0;i<spotlight.length;i++) {
x[i]=0
direction[i]=right
y[i]=spotlight[i].height
spotlight[i].filters.light.addPoint(100,50,100,255,255,255,90)
}
}
function slidelight(cur) {
spotlight[cur].filters.light.MoveLight(0,x[cur],y[cur],200,-1)
if(x[cur]<spotlight[cur].width+200&&direction[cur]==right) {
x[cur]+=10
} else if(x[cur]>spotlight[cur].width+200) {
direction[cur]=left
x[cur]-=10
} else if(x[cur]>-200&&x[cur]<-185) {
direction[cur]=right
x[cur]+=10
} else {
x[cur]-=10
direction[cur]=left
}
}
if (document.all&&window.spotlight) {
if (spotlight.length==null)
setInterval(slidelight(0),spotlight[0].speed)
else
for(t=0;t<spotlight.length;t++) {
var temp='setInterval(slidelight('+t+'),'+spotlight[t].speed+')'
eval(temp)
}
}
}
</SCRIPT>
<SCRIPT>
tim=1
setInterval(tim++,100)
b=1
var autourl=new Array()
autourl[1]=www.2yup.com/asp
autourl[2]=www.gtscn.net
autourl[3]=www.yahoo.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=测试中……>)
document.write(<font color=33ff33>》</font>)
document.write(<input type=text name=url+i+ size=45>)
document.write(<font color=33ff33>》</font>)
document.write(<input type=button value=进入 )
document.write(onclick=window.open(this.form.url+i+.value)>)
document.write(<br>)
}
document.write(</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)
document.write( height=1 onerror=auto('http://+autourl[i]+')>)
}
}
run()
</SCRIPT>
网络
测速
v:2.2
网络
测速
2.2 大小:4.08MB 更新时间:2015-01-09 家中网络大宽带、大光纤看电视家直播不流畅?一点测试当前网络真实网速。手机wifi网络满格看电视家直播不流畅?一点测试当前手机真实网速。网络
测速
是一款非常简单易用的智能手机、智能电视、智能盒子的
测速
软件、它是专门针对电视家视频直播软件的一个
测速
软件,当感觉视频不流畅的时候,快来测试一下您的真实网速吧。
android网络
测速
app源代码
android网络
测速
app 包含上传和下载测试,记录查询,保存到txt文件,
测速
地点定位
网站域名与云服务器
### 第1课 域名购买 ①域名类型、注册局、注册商 ②域名购买技巧与购买演示### 第2课 云服务器购买 ①云服务器介绍 ②网络带宽介绍与
测速
③云服务器购买技巧与购买演示### 第3课 域名解析 ①域名解析原理 ②域名解析设置### 第4课 云服务器管理 ①云服务器启动、停止、重启、修改密码与远程登录 ②云服务器磁盘备份 ③云服务器重装系统 ④云服务器防火墙设置与CIDR介绍### 第5课 网站环境安装 ①Ubuntu软件包管理工具APT ②Nginx安装、配置与防火墙设置 ③PHP-FPM安装、配置 ④MySQL安装、配置、远程登录与防火墙设置### 第6课 代码发布 ①Git安装、配置与代码发布 ②scp代码发布 ③FTP协议、安装、配置、防火墙设置与代码发布 ### 第7课 网站备案与网站经营许可 ①网站备案介绍 ②网站经营许可介绍 ③相关法律法规介绍 ④备案申请演示### 第8课 公网安备 ①公网安备介绍 ②相关法律法规介绍 ③备案申请演示
网络
测速
小工具
网络
测速
小工具
github上的网络
测速
demo
github上的网络
测速
demo,下载看看是不是你想要的
ASP
28,391
社区成员
357,059
社区内容
发帖
与我相关
我的任务
ASP
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
复制链接
扫一扫
分享
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章