View Full Version : help with 'Top Navigational Bar II'

03-22-2005, 07:35 PM
I'm pretty new at this confused: , I'm building a page with Frontpage 2000. Trying to use this script..
I can get the script to work but problem is I can't figure out how to make the links open in a different frame from the one the navigational bar is is located in.
When I create a regular hyperlink to open in the new frame it looks like this:
<a href="http://www.yahoo.com" target="main">yahoo</a>
In the script the line(s) I need to change look like this:
dhtmlMenu.addItem(new NavBarMenuItem("ABCNews", "http://www.abcnews.com"));
What I'd like is to see an example of what the line above, in its entirety, ought to look like, i.e. something I could paste right into the script. Could someone maybe do this, using the yahoo link above?

Also I can't figure out how to make the menus go up instead of drop down, supposed to be an "invert" function but I can't find it anywhere in the script.
Thanks in advance for any help! :)

03-22-2005, 11:36 PM
I'm assuming you are using Top Navigational Bar II All (http://www.dynamicdrive.com/dynamicindex1/topnavbar.htm) though I can't be certain. If I'm right and I understand the documentation, this is what you are looking for:

dhtmlMenu.addItem(new NavBarMenuItem("yahoo", "javascript:parent.main.location='http://www.yahoo.com'"));if that doesn't work, try:
dhtmlMenu.addItem(new NavBarMenuItem("yahoo", javascript:parent.main.location='http://www.yahoo.com'));one of the two should do it. Now, where you see:



PLEASE: Include a link to your page that you want help with.