Results 1 to 5 of 5

Thread: Make a frame refresh from another frame? [resolved]

  1. #1

    Thread Starter
    Frenzied Member thegreatone's Avatar
    Join Date
    Aug 2003
    Location
    Oslo, Norway. Mhz:4800 x12
    Posts
    1,333

    Exclamation Make a frame refresh from another frame? [resolved]

    I would like to know how to make a frame refresh using another frame to tell it what to refresh to by selecting a random URL from the list.

    So my page would look like this..

    _____________________________________________
    |Main Frame [Frame to tell wot other frame to refresh to]|
    ------------------------------------------------------------------------
    |Secondary Frame to refresh by being told to do so and_|
    |which url to go to every 5 minutes and 10 seconds____|
    |____________________________________________|

    You get what i mean?
    1. It has to refresh the bottom frame using the top frame
    2. It has to be told which page to refresh to by using a random url selector located in the top frame
    3. It must Refresh with a new link every 310 seconds or 5 mins 10 secs

    4. CAN ANYBODY SHOW ME AN EXAMPLE OF THE SCRIPT

    Thnx in advance
    Last edited by thegreatone; May 20th, 2005 at 01:24 PM.
    Zeegnahtuer?

  2. #2
    Fanatic Member RealisticGraphics's Avatar
    Join Date
    Jul 1999
    Location
    Arkansas
    Posts
    655
    Place this script in the page that is loaded in the top frame. Note the comments I made:

    Code:
    <script language="JavaScript">
    var aUrl = new Array();
    var aUC = 0;
    
    aUrl[aUC++] = "http://www.vbforums.com"
    aUrl[aUC++] = "http://www.realisticgraphics.com"
    aUrl[aUC++] = "http://www.google.com"
    aUrl[aUC++] = "http://www.spawn.com"
    
    function LoadFrame(){
    var iRnd = Math.round(Math.random() * (aUC - 1))
    
    //replace "bottom" with the name of the frame you want to reload
    window.parent.frames["bottom"].location = aUrl[iRnd]
    }
    
    setInterval(LoadFrame, 310000); //5 mins-10 secs in milliseconds
    
    </script>
    www.RealisticGraphics.net

    Running VS.Net Enterprise & VB 6

    Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML

    MSN Messenger: kmsheff

  3. #3
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    thegreatone, why are you asking the same questions multiple times in both the HTML and PHP forums?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  4. #4

    Thread Starter
    Frenzied Member thegreatone's Avatar
    Join Date
    Aug 2003
    Location
    Oslo, Norway. Mhz:4800 x12
    Posts
    1,333
    The reason i keep asking is because people keep saying that it can be done in different languages so i go to that forum and ask there
    Zeegnahtuer?

  5. #5
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by thegreatone
    The reason i keep asking is because people keep saying that it can be done in different languages so i go to that forum and ask there
    You've asked this question four or five times. An answer has been given just about every time.

    And it's been the same answer.
    My evil laugh has a squeak in it.

    kristopherwilson.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width