navigation with frames

liunx

Guest
when dealing with frames, how do you create a link from the topFrame that links to an anchor in the mainFrame of a different frameset?<!--content-->You do it something like this... <a href=http://www.webdeveloper.com/forum/archive/index.php/"page.htm#anchorname" target="mainframename"><!--content-->thanks for your help. I'm actually trying to modify a DHTML menu call HVMenu. In it i've used this bit a javascript: "javascript:top.document.location.href='http://www.webdeveloper.com/forum/archive/index.php/html/adult.html#yoga' target='MyFrameTwo';<br />
But it doesn't seem to work. Have you any ideas?<!--content-->Its not possible to guess that what is going on in the code that stops your piece of code from working,you may want to poin to a link to your pages...<!--content-->I'm not to sure what you mean. I have inserted named anchors in the mainFrame of a frameset and I am trying to access it from this HVmenu which is in another frameset. Here is the first drop down menu:<br />
<br />
Menu1=new Array("adult fitness","blank.htm","",8,18,140);<br />
Menu1_1=new Array("group fitness classes", "javascript:top.document.location.href='http://www.webdeveloper.com/forum/archive/index.php/html/adult.html';","",0,20,150);<br />
Menu1_2=new Array("yoga & pilates","javascript:top.document.location.href='http://www.webdeveloper.com/forum/archive/index.php/html/adult.html#yoga' target='MyFrameTwo';","",0);<br />
Menu1_3=new Array("private gym","blank.htm","",0);<br />
Menu1_4=new Array("personal training","blank.htm","",0);<br />
Menu1_5=new Array("lifestyle coaching","blank.htm","",0);<br />
Menu1_6=new Array("adult swimming","blank.htm","",0);<br />
Menu1_7=new Array("specialty courses","blank.htm","",0);<br />
Menu1_8=new Array("membership information","blank.htm","",0);<!--content-->to access items in other frames,<br />
parent.framesname.document.location.href='''''<!--content-->should it look like this then:<br />
Menu1_2=new Array("yoga & pilates","javascript:parent.MyFrameTwo.document.location.href=''html/adult.html#yoga' target='MyFrameTwo';","",0);<!--content-->Menu1_2=new Array("yoga & pilates","javascript:parent.MyFrameTwo.document.location.href=''html/adult.html#yoga' target='MyFrameTwo';","",0);<!--content-->its looks correct...<!--content-->sorry, it keeps on putting a smilie face instead of : p...<!--content-->
 
Back
Top