• 07Feb

    There are some websites with information that are updated every minute or seconds without an auto refresh function. Some information might be oppurtunities which could be missed when the browsed site has not been refreshed or reloaded manually. The code below has an auto reload or refresh function that might be helpful for you. To see the result, just copy the code into an editor program and save it as an html file.

    The CODE (note: preferedURLaddress is the URL address to be reloaded):

    <HTML><HEAD><TITLE>TheOnlineMatrix Auto Reload</TITLE></HEAD><BODY>
    <A href=”javascript:winpop(369,501,’preferedURLaddress’,'w2′);” > Reload </a>
    <SCRIPT type=text/javascript>

    function winpop(yy,xx,url,titlepage){
    yya=(window.screen.height-yy)/2;
    xxa=(window.screen.width-xx)/2;
    rr=window.open(url,titlepage,”scrollbars=no, status=no, menubar=no, titlebar=no,
    toolbar=0, resizable=1, location=0, height=” + yy + “, width=” + xx + “,left=” + xxa + “, top=” + yya);
    rr.focus();
    setTimeout(”refreshpg();”,50000);}

    function refreshpg(){
    var randomnumber=Math.floor(Math.random()*8)
    rr.location.href=”preferedURLaddress”; rr.focus();
    setTimeout(”refreshpg();”,(randomnumber+10)*10000);}
    </SCRIPT></BODY></HTML>

    Posted by admin @ 6:57 am

One Response

WP_Orange_Techno
  • ideas beyond borders Says:

    thanks, this is very helpful. i will use it for my philippine daily inquirer link since i’m waiting for the exam result that’s gonna come out anytime soon…

    good job there, theonlinematrix mastermind!

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.