不能,请再说清楚些reload()的具体情况

解决方案 »

  1.   

    setTimeout('this.location.reload()',4000);
    是用这种方式其实这个页面的在的框架我已经width=0,height=0了。但是它的状态仍然显示在状态栏。
      

  2.   

    用xmlhttp吧<script> 
       function sendData(){ 
       var url=window.location
       var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); 
       xmlhttp.Open("get",url, false); 
       xmlhttp.Send(); 
       } 
    setTimeout('sendData()',4000);
    </script>
      

  3.   

    不行呀。老大
    <script> 
       function sendData(){ 
       var url='http://www.sina.com.cn/';
       var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); 
       xmlhttp.Open("get",url, false); 
       xmlhttp.Send(); 
       } 
    setTimeout('sendData()',4000);
    </script>
    存为一个页面。一直没有运行
      

  4.   

    在运行啊,不过你看不出来,这不就是你要得效果吗
    try:
    <script> 
       function sendData(){ 
       var url='http://www.sina.com.cn/';
       var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); 
       xmlhttp.Open("get",url, false); 
       xmlhttp.Send(); 
       alert(xmlhttp.responseText)
       } 
    setTimeout('sendData()',4000);
    </script>
      

  5.   

    定时函数有点问题,try:
    <script> 
       function sendData(){ 
       var url='http://www.sina.com.cn/';
       var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); 
       xmlhttp.Open("get",url, false); 
       xmlhttp.Send(); 
       alert(xmlhttp.responseText)
       } 
    function my_refresh()

    sendData();
    setTimeout("my_refresh()",10000);

    my_refresh();
    </script>
      

  6.   

    我的问题是在一个frame中 有一个html页面,不断的刷新,使用 xmlhttp方式
    <script> 
       function sendData(){ 
       var url='http://www.sina.com.cn/';
       var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); 
       xmlhttp.Open("get",url, false); 
       xmlhttp.Send(); 
       alert(xmlhttp.responseText)
       } 
    function my_refresh()

    sendData();
    setTimeout("my_refresh()",10000);

    my_refresh();
    </script>
    <script> //内容根据数据库会动态变化
    parent.document.write('aa');
    parent.document.write('bb');
    parent.document.write('bb');
    </script>
    你说的刷新方法单独在一个页面中可以。但用到这上面一直不起效果。不知道哪里有问题
      

  7.   

    我遇到过,可以解决的!你是做聊天市吧
    用这个document.execCommand('Refresh')就可以了!呵呵
      

  8.   

    to kingofbird(雪鹰) 老大,可不可以说的清楚一些。
    贴一些具体代码出来
      

  9.   

    这样说吧,我的页面很简单,页面中包含
    <script language=javascript>
    now=new Date(); 
    H=now.getHours();
    M=now.getMinutes(); 
    S=now.getSeconds(); 
    timestr=(H<10)?("0"+H):H;
    timestr+=":"; 
    timestr+=M;
    timestr+=":"; 
    timestr+=S;
    document.write(timestr);
    </script>
    就是为了在页面中显示当前的时间。现在每隔4秒钟我需要让它刷新一次,显示最新的时间。但页面刷新的方式不能通过reload方式,因为那样会在状态栏显示刷新状态,并且有"卡卡"的声音,会很不方便。有何办法能够改善呢。只要这个问题解决了,我的问题也就解决了
      

  10.   

    系统控制面板 -> 声音与多媒体 -> windows 资源管理器里的启动导航 将这个对应的声音选择为(无)
      

  11.   

    这个显示时间没有刷新的问题<style>
      .DataTime
      { 
        font-family:Arial;
        color:#737373; 
        font-size:10pt;
        font-weight: bold;
        padding-left:5px;
      }
    </style><script>
    function ShowTime()
    {
        var today = new Date();
    var centry ;
    var s=new Array("日","一","二","三","四","五","六");
    centry="";
    if(today.getYear()<2000 ) centry = "19" ;
    date1 = centry + (today.getYear()) + "年" + (today.getMonth() + 1 ) + "月" + today.getDate() + "日" ;
    date1+=" 星期"+s[today.getDay()]+" "+Add0(today.getHours())+":"+Add0(today.getMinutes())+":"+Add0(today.getSeconds());
    SHOWTIMESPAN.innerText=date1; 
    window.setTimeout(ShowTime,1000); 
    }
    </SCRIPT><div class="DataTime"><span ID=SHOWTIMESPAN></span></div>
      

  12.   

    XMLHTTP刷新要注意,缓冲问题<%Response.Expires = -1 %>
      

  13.   

    to mengsky(梦天),
    页面中会生成一些doucment.write('parent.document.write('xxxx')');这些内容,在另一个框架面中写出,而本身这个页面是不停刷新的。