PDA

View Full Version : Loading 2 Inline Frames


americanqu33r
05-13-2003, 06:24 PM
I have a site with 2 inline frames and I want to load one frame, and then I want that frame to tell the other inline frame to load.

Can anyone help me out?

americanqu33r
05-13-2003, 06:44 PM
I found the code below and set it up and it worked, BUT my navigation is in a drop down box. And now I get an error when I put the code into the drop down menu. *L* Any help?

One of my personal favorites:


code:--------------------------------------------------------------------------------
<SCRIPT LANGUAGE="JavaScript">
function setFrame(frameName, frameSrc) {
parent[frameName].location=(frameSrc + '.htm');
}
</SCRIPT>
--------------------------------------------------------------------------------


Link to be written as such:


code:--------------------------------------------------------------------------------
<A HREF=" java script:setFrame('frameName1','frameContent1');
setFrame('frameName2','frameContent2')">link</A>
--------------------------------------------------------------------------------

glenngv
05-14-2003, 04:09 AM
function setFrame(frameName, frameSrc) {
top.frames[frameName].location=frameSrc + '.htm';
}

or:

function setFrame(frameName, frameSrc) {
window.open(frameSrc + '.htm', frameName);
}