欢迎光临
我们一直在努力

web页面简单进度记时器_asp实例

建站超值云服务器,限时71元/月

<html>
<head>
<title> TimeBar Version 1.0 </title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Refresh" content="20;url=">
<style>
td {font-size: 10.5pt; color: 147e19; font-family: Courier New;}
</style>
</head>
<body bgcolor="#FFFFFF">
<br><br><br><br>
<center>
<table width=500 border=0>
<tr><td>
<br>
<p align=center>TimeBar V1.0 by Key@CyberStudio.NPU<br>请查看源代码<br>
请设置进度条的增长速度和每次增长的长度</p>
<table align=left><tr><td width=1 bgcolor=#99ccff height=5 id=Ratio></td></tr></table>
<!–将上面一行的align=left换成right或center,看看效果如何–>
</td></tr>
<tr><td bgcolor=eeeeee>&nbsp;20秒后刷新本页</td></tr>
</table></center>
</body>
</html>
<script language="javascript">
//TimeBar V1.0 by Key@CyberStudio.NPU
//2000.11

ShowRatio();
function ShowRatio()
{
var intTimer=40; //进度条增长速度
var intAddwidth=1; //每次增长的长度,最小为1
var intMaxWidth=500; //最大宽度
//以上两个数值需要根据你的进度条总宽和延迟时间决定,例如: 本页的进度条长度为500,需要在20秒后刷新或离开本页,则
//intAddwidth=(20*1000)/500=40.当然,可以让intAddwidth=80,intTimer=2,请试一试。
var rw;
if (Ratio.width=="") Ratio.width=1;
rw=parseInt(Ratio.width);
Ratio.width=rw+intAddwidth;
if (rw+10<intMaxWidth) setTimeout("ShowRatio()",intTimer);
}
</script>

【本文版权归作者与奥索网共同拥有,如需转载,请注明作者及出处】    

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » web页面简单进度记时器_asp实例
分享到: 更多 (0)

相关推荐

  • 暂无文章