Results 1 to 4 of 4

Thread: DD nav bar

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

    Default DD nav bar

    Hey all, I'm a hardware guy looking for help.

    I am using DD nav bar found here,
    http://www.dynamicdrive.com/dynamicindex1/topnavbar.htm

    It works great except when I follow a link it opens in the same window. I have a page that I use for active desktop. When a link is followed the active desktop page changes, hence lots of calls. I would like it to open in a new window for every thing on the drop down menu.

    I think it may be in here..

    dhtmlMenu = new NavBarMenu(50, 0);
    dhtmlMenu.addItem(newNavBarMenuItem("GPMS","http://idxhost.fpf.com/gpmsweb/"));
    myNavBar1.addMenu(dhtmlMenu);


    Any help would be super!

    Thanks!
    Aaron
    Last edited by blue42; 01-18-2005 at 07:45 PM.

  2. #2
    Join Date
    Jan 2005
    Location
    Seattle
    Posts
    53
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Various examples:
    -- text but no link...not clickable
    dhtmlMenu.addItem(new NavBarMenuItem("News", ""));

    -- link, takes over current page (no frames)
    dhtmlMenu.addItem(new NavBarMenuItem("CNN", "http://www.cnn.com"));

    -- link opens up in new browser window (for both frames and non-frames)
    dhtmlMenu.addItem(new NavBarMenuItem("Your Text", "javascript:window.open('http://www.yahoo.com')"));


    -- link opens up file on hard drive if available
    dhtmlMenu.addItem(new NavBarMenuItem("Your Text", "javascript:parent.frames['main'].location = 'file:///D:/\MainFolder/\Sub%20Folder/\sub-sub-folder/\page.htm'"));

    -- link opens up page in targeted frame of framed page
    dhtmlMenu.addItem(new NavBarMenuItem("<middle><img src='images/transparent_15x16.gif'> - PUT TEXT HERE</middle>", "javascript:parent.frames['main'].location = 'schedules/football.htm'"));

    -- link takes over current browser window of framed site
    dhtmlMenu.addItem(new NavBarMenuItem("PUT TEXT HERE", "javascript:parent.location = 'http://www.yahoo.com'"));

  3. #3
    Join Date
    Sep 2004
    Location
    Little Falls, Roodepoort, South Africa
    Posts
    421
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    On the nail speedracer
    Very Best Rgds, Simonf :cool:
    __________________________________
    My Site | E-Mail Me

  4. #4
    Join Date
    Jan 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Red face

    Thanks alot. Works great.

    What about this?
    I've played with this all weekend and just can not get it to work. Its from the nav bar II. I just cant seem to get it to work correctly.

    dhtmlMenu.addItem(new NavBarMenuItem("MSO Extensions by Dept.", strDirectoryLocation + "/directories/EmpDeptExtensions.xls"));

    Its just opening an excel file located here. C\Inetpub\wwwroot\MainDesktop\directories

    Thanks Again

    Aaron

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
  •