JavaScript Source Code 3000: Navigation: Frames Load Order
Frames Load Order
Loads a frame only after the other frame has completely finished loading. With two frames, for example, the top frame is blank until the bottom frame loads. Then, the top frame loads with the correct page. Great!
JavaScript Source Code 3000: Navigation: Frames Load Order
Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!
<!-- FOUR STEPS TO INSTALL FRAMES LOAD ORDER:
1. Copy the coding into the HEAD of your frameset document
2. Add the onLoad event handler to the frameset tag
3. Change the frame you want to load last to blank.html
4. Save the last code as your blank.html (the temp. page) -->
<!-- STEP ONE: Paste this code into the HEAD of your frameset document -->
<HEAD>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Ronnie T. Moore, Editor -->
<!-- Web Site: JavaScript Source Code 3000 -->
<! >
<! >
<!-- Begin
function refreshFrame() {
frames['frame1'].window.location.href = "frame1-page.html"; // frame 1's page
}
// End -->
</script>
</head>
<!-- STEP TWO: Paste this onLoad event handler into the frameset tag -->
<frameset rows="50%,*" onLoad="refreshFrame();">
<!-- STEP THREE: Set up the temporary blank.html page for the frame -->
>!-- that you want to load second (after the other frame finishes) -->
<frame name="frame1" src="blank.html">
<frame name="frame2" src="frame2-page.html">
</frameset>
</HTML>
<!-- STEP FOUR: Save this short HTML page as blank.html -->
<html>
<body bgcolor="white">
</body>
</html>
<!-- Script Size: 1.02 KB -->
Wyszukiwarka
Podobne podstrony:
load in framesload two framesBAD INV ORDERORDERmember order approvedFrames (4)ORDERframes (3)image to loadMscode99 Orderwięcej podobnych podstron