用 <meta http-equiv="refresh" content="5"> 只会一直刷新。

解决方案 »

  1.   

    在html的<head>和</head>之间插入下面的内容: <meta http-equiv="refresh" content="second; url=the _page "> 把second换成你要刷新的时间的间隔,the_page换成指定要访问的url就可以了。
      

  2.   

    谢谢你,singlepine(小山) 。
    可我是要在某个时间段(比如每天的10:00-11:00)自动刷新,而其它时间段不用刷新。
      

  3.   

    <html>
    <head>
    <title>定时刷新</title>
    <meta http-equiv="Content-Type" content="text/html;  charset=gb2312">
    <meta name="GENERATOR" content="Microsoft  FrontPage  4.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <script language="javascript">
    <!--  
    var timeID;
    function startrefresh()
    {
    timeID = setTimeout("refresh()",10000);
    }
    function  refresh()
    {
    var  now  =  new  Date()
    var  hours  =  now.getHours()
    var  minutes  =  now.getMinutes()
    var  seconds  =  now.getSeconds()
    if(hours >= 10 && hours < 11)
    {
    location.reload();
    }
    }
    //-->
    </script>
    </head>
    <body onload="startrefresh()">
    <form>

    </form>
    </body>
    </html>