页:
[1]
| yeoman_z | 2005-5-15 05:52 AM |
|
实时显示
"在线等"的时候,页面不变了
实时显示
1: 在meta元素中定义页面的定时刷新:
<meta http-equiv="refresh" content="300 ">
2通过Javasript中的document对象的document.location.reload()配合setTimeout语句实现定时刷新:
<script language="JavaScript">
function do Timer()
{
document.location.reload();
the_timeout=setTimeout("doTime();", 300000);
}
</script>
调用此函数.:confused: |
| xuefengal | 2005-5-15 11:01 AM |
|
<meta http-equiv="refresh" content="300">
<script>setTimeout("location=document.href",300000);</script> |
Powered by Discuz! Archiver 6.1.0
© 2001-2006 Comsenz Inc.
Processed in 0.005659 second(s), 2 queries |