load two frames




JavaScript Source Code 3000: Navigation: Load Two Frames






































Load Two Frames







Open two different pages into two separate pages when the user clicks on one link! The frameset code can even be customized to fit with your site's design. Great!




Load AOL and Excite.com in Frames!




JavaScript Source Code 3000: Navigation: Load Two Frames
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!!!





    





<!-- TWO STEPS TO INSTALL LOAD TWO FRAMES:

1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<! >
<! >

<!-- Begin
function loadFrames(page1, page2) {
framecode = "<frameset rows='50%,50%'>"
+ "<frame src='" + page1 + "'>"
+ "<frame src='" + page2 + "'>"
+ "</frameset>";

page = window.open("");
page.document.open();
page.document.write(framecode);
page.document.close();
}
// End -->
</script>
</HEAD>

<!-- STEP TWO: Copy this code into the BODY of your HTML document -->

<BODY>

<a href="javascript:loadFrames('http://www.aol.com','http://www.excite.com')">Load AOL and Excite.com in Frames!</a>



<!-- Script Size: 0.95 KB -->










Wyszukiwarka