[thelist] frames load order
ryan manville
ryan at ryanmanville.com
Tue Jul 30 16:15:07 CDT 2002
Actually with a little bit of javascript and some dummy placeholders you can
dictate the order of the frame loads if this is important to you:
http://developer.irt.org/script/4.htm
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
This effect can be achieved by loading dummy frames to start with, and then
using the onLoad event to change the location of other frames:
<html>
<head>
<script language="JavaScript"><!--
function load_next(frame) {
if (frame == 2)
window.frameName2.location.href = "frame2.html";
else if (frame == 3)
window.frameName3.location.href = "frame3.html";
else if (frame == 4)
window.frameName4.location.href = "frame4.html";
else if (frame == 5)
window.frameName5.location.href = "frame5.html";
}
//--></script>
</head>
<frameset rows="20%,20%,20%,20%,20%" onLoad="load_next(2)">
<frame src="frame1.html" name="frameName1">
<frame src="dummy.html" name="frameName2">
<frame src="dummy.html" name="frameName3">
<frame src="dummy.html" name="frameName4">
<frame src="dummy.html" name="frameName5">
</frameset>
</html>
When all the frames have been loaded, the onLoad event within the frameset
will use the load_next() function to change the contents of frameName2.
The contents of frame2.html would then need to contain the following:
<body onLoad="parent.load_next(3)">
When frame2.html is loaded the onLoad event in the body tag will use the
load_next() function in the parent frame to change the contents of
frameName3 etc. etc.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
----- Original Message -----
From: "Chris Ditty" <CDitty at email.usps.gov>
To: "thelist" <thelist at lists.evolt.org>
Sent: Tuesday, July 30, 2002 10:09 AM
Subject: RE: [thelist] frames load order
:
: I would be willing to bet that it is because the bottom frame is smaller
in
: filesize and just simply loads quicker. To my knowledge, there is no way
to
: dictate the page load sections.
:
: Chris
:
: -----Original Message-----
: From: thelist-admin at lists.evolt.org
: Sent: Tuesday, July 30, 2002 12:51 PM
: To: Chris Ditty; thelist at lists.evolt.org
: Subject: [thelist] frames load order
:
:
: Hi all. I am puzzled as to why my bottom frame loads first on
: http://www.ashgrovehouse.com/Version2/ Do any of you know the "rules" for
the
: order in which frames load? The top frame is defined first, so don't know
why
: it loads last?? Much appreciate your help...
:
: Cheers, PF
:
: --
: For unsubscribe and other options, including
: the Tip Harvester and archive of thelist go to:
: http://lists.evolt.org Workers of the Web, evolt !
: --
: For unsubscribe and other options, including
: the Tip Harvester and archive of thelist go to:
: http://lists.evolt.org Workers of the Web, evolt !
:
More information about the thelist
mailing list