×

Loading...
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。

I wrote a sample, it can refresh every 10 seconds, you can change it to refresh as how many sites and as how often you want.

<html>
<head>
<script language="javascript">
var checkseconds=10;
var url='http://www.yahoo.com';
var url2='http://www.google.ca';
function recheck() {
document.getElementById('frame1').src=url;
document.getElementById('frame2').src=url2;
setTimeout("recheck()", 1000 * checkseconds);

}
</script>
</head>
<body leftmargin=0 topmargin=0 rightmargin=0>
<iframe id="frame1" src="" border="0" width=100% height=50%></iframe>
<iframe id="frame2" src="" border="0" width=100% height=50%></iframe>
<script language="javascript">recheck();</script>
</body>
</html>
Report

Replies, comments and Discussions:

  • 工作学习 / IT技术讨论 / 请问那里有让页面自动刷新的免费软件,这样不会被timeout. 谢谢!象这个(可惜只有try version):
    http://www.autourlrefresher.com/
    • 这也能卖钱? 俺5分钟就能写一个出来....
    • try maxthon. it has that function built-in. it's based on IE engine.
    • Opera
    • 谢谢楼上各位,有没有用在IE上的呢?
      • 别说你是做IT的。
        写个frame html page

        <meta http-equiv="Refresh" content="刷新时间;URL=被刷新url">
        • 谢谢回答啊,我还真是作IT的,你能保证你的CODE一直刷新吗? 好象只能刷新第一次叭。
          • 楼上的关键是用frame。。。我给你写了一个例子,按理说,你该pay我点学费。
            在本地建立一个html文件,注意,文件名要和要和下面的URL里面的相同,我这里使用index.html。刷新间隔3秒,刷新我的相册。你如果upload到服务器上一样可以用。原理就是刷新其本身,你想要刷新的页面只是它的一个frame
            =================================

            <html>

            <head>
            <meta http-equiv="Refresh" content="3;URL=index.html">
            <title>New Page 1</title>
            </head>

            <frameset rows="*">
            <frame name="main" src="http://www.pbase.com/heian2">
            <noframes>
            <body>

            <p>This page uses frames, but your browser doesn't support them.</p>

            </body>
            </noframes>
            </frameset>

            </html>
    • 把鼠标左键压住,光标放在刷新按钮上。
      • 一次有效。
        • 找个磕头虫,跪在鼠标左键上。
    • I wrote a sample, it can refresh every 10 seconds, you can change it to refresh as how many sites and as how often you want.
      <html>
      <head>
      <script language="javascript">
      var checkseconds=10;
      var url='http://www.yahoo.com';
      var url2='http://www.google.ca';
      function recheck() {
      document.getElementById('frame1').src=url;
      document.getElementById('frame2').src=url2;
      setTimeout("recheck()", 1000 * checkseconds);

      }
      </script>
      </head>
      <body leftmargin=0 topmargin=0 rightmargin=0>
      <iframe id="frame1" src="" border="0" width=100% height=50%></iframe>
      <iframe id="frame2" src="" border="0" width=100% height=50%></iframe>
      <script language="javascript">recheck();</script>
      </body>
      </html>