PDA

View Full Version : DD nav bar



blue42
01-18-2005, 04:45 PM
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

speedracer
01-19-2005, 08:47 AM
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'"));

simonf
01-19-2005, 09:33 AM
On the nail speedracer :)

blue42
01-24-2005, 04:39 PM
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