如何让页面每隔一段时间定时刷新一下????

想让asp页面每隔一段时间就刷新一下,能不能实现的???
---------------------------------------------------------------

1<meta content="3;url=Page.asp" http-equiv="refresh"/>

其中3为刷新时间.
Page为目的网页,设为当前页
---------------------------------------------------------------

用cmmzj() 的办法即可
---------------------------------------------------------------

都是一分中刷新一次

1、

1<meta content="60,url=#" http-equiv="refresh"/>

2、

 1<script>   
 2<!--   
 3var limit="0:60"   
 4if (document.images){   
 5var parselimit=limit.split(":")   
 6parselimit=parselimit[0]*60+parselimit[1]*1   
 7}   
 8function beginrefresh(){   
 9if (!document.images)   
10return   
11if (parselimit==1)   
12window.location.reload()   
13else{   
14parselimit-=1   
15curmin=Math.floor(parselimit/60)   
16cursec=parselimit%60   
17if (curmin!=0)   
18curtime=curmin+"分"+cursec+"秒后重刷本页!"   
19else   
20curtime=cursec+"秒后重刷本页!"   
21window.status=curtime   
22setTimeout("beginrefresh()",1000)   
23}   
24}   
25window.onload=beginrefresh   
26//-->   
27</script>
Published At
Categories with Web编程
comments powered by Disqus