View Full Version : Frames with All Levels Navigational Menu (v1.5)

11-12-2008, 11:32 PM
1) All Levels Navigational Menu (v1.5)

2) http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/index.htm

3) Hi all

I am trying to use the all levels menubar to let people navigate around my website. I want to place the menubar to the right of the screen ( black box ) , and when a link is clicked it should load up in the centre box ( the red box in the pic below ).

http://img222.imageshack.us/img222/5863/framesqy6.th.jpg (http://img222.imageshack.us/my.php?image=framesqy6.jpg)http://img222.imageshack.us/images/thpix.gif (http://g.imageshack.us/thpix.php)

I basically want a borderless frame, but am stuck on how to integrate the menubar into my index.html file, and also how to generate a borderless frame ( red one ) for the main content to appear in . . . . . . never mind about how much time I have spent trying to get the all levels menu bar to display the content in the centre box ( red ) :confused:

Any help would be gratefully appreciated, if someone could even just create a basic index.html file for me - that would be even better !



11-13-2008, 01:03 AM
Set a target attribute on the anchor tags:

<li><a href="http://www.dynamicdrive.com/" target="myframe">Dynamic Drive</a></li>
<li><a href="http://www.dynamicdrive.com/style/" rel="ddsubmenuside1" target="myframe">CSS Library</a></li>
<li><a href="http://www.javascriptkit.com/jsref/" rel="ddsubmenuside2" target="myframe">JavaScript Reference</a></li>
<li><a href="http://www.javascriptkit.com/domref/" target="myframe">DOM Reference</a></li>
<li><a href="http://www.cssdrive.com" rel="ddsubmenuside3" target="myframe">CSS Drive</a></li>
<li><a href="http://www.codingforums.com/" style="border-bottom-width: 0" target="myframe">Coding Forums</a></li>

...just ensure that the value of the target attribute (which on my example is myframe) is the same as that of the frame's name:

<iframe name="myframe" src="about:blank;"></iframe>

Hope that helps.