|
-
Sep 5th, 2003, 03:33 PM
#1
Thread Starter
Frenzied Member
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?
-
Sep 5th, 2003, 06:18 PM
#2
Fanatic Member
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
-
Sep 7th, 2003, 01:47 PM
#3
Stuck in the 80s
thegreatone, why are you asking the same questions multiple times in both the HTML and PHP forums?
-
Sep 17th, 2003, 02:18 PM
#4
Thread Starter
Frenzied Member
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
-
Sep 17th, 2003, 06:00 PM
#5
Stuck in the 80s
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|