Results 1 to 2 of 2

Thread: help with 'Top Navigational Bar II'

  1. #1
    Join Date
    Mar 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default help with 'Top Navigational Bar II'

    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!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I'm assuming you are using Top Navigational Bar II All though I can't be certain. If I'm right and I understand the documentation, this is what you are looking for:

    Code:
    dhtmlMenu.addItem(new NavBarMenuItem("yahoo", "javascript:parent.main.location='http://www.yahoo.com'"));
    if that doesn't work, try:
    Code:
    dhtmlMenu.addItem(new NavBarMenuItem("yahoo", javascript:parent.main.location='http://www.yahoo.com'));
    one of the two should do it. Now, where you see:
    Code:
    myNavBar1.resize(fullWidth);
    myNavBar1.create();
    myNavBar1.setzIndex(2);
    add
    Code:
    myNavBar1.invert();
    PLEASE: Include a link to your page that you want help with.
    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format for asking a question.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •