//try
function ReloadIframe()
{
   document.getElementById('xx').src="xx.asp?"+Math.random();
   setTimeout("ReloadIframe()",1000);
}
ReloadIframe();

解决方案 »

  1.   

    prototype.js
    中的
    Ajax.PeriodicalUpdater
      

  2.   

    setTimeout能重复刷新吗? 还是只能执行一次啊??  prototype.js 我去学习看看
      

  3.   

    function refersh()
    {
        document.getElementById('xx').src="xx.asp?"+Math.random();    
    }
    setInterval("refersh",1000);
      

  4.   


    setTimeout是页面加载一定时间后运行一次.但上面的function是循环运行的,LZ不看代码啊.
    但上面function页面出来时有个延迟,LZ可以改成第一次同步.