PDA

View Full Version : Top Navigational Bar II loads URl in iframe



Fritzderoo
11-27-2006, 11:59 AM
1) Script Title: Top Navigational Bar II

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/topnavbar.htm

3) Describe problem: how can make the menu load the url link in an iframe ? i read Step 2) Menu links targetting all down the page but i still cant figure out how to manage it. Where do you have to put the code @ step 2 ? Or is there someting else you have to do to make it work ?
Can somebody please let me know what to do ?

Thanx

aykon
01-17-2007, 08:08 PM
I have the exact same issue. I have tried about 5 different ways to do this and I can't figure it out. And when you check the email for Mark Hall, it says "REMOVE THIS" in the address. Won't someone please assist?

jscheuer1
01-18-2007, 05:22 AM
Just glancing at what it says on the demo page:


javascript:parent.framename.location='http://dynamicdrive.com'

Looks wrong. Except for the primary window (which an iframe is not), the href property must also be used:


javascript:parent.framename.location.href='http://dynamicdrive.com'

So, you would have something like so:


dhtmlMenu.addItem(new NavBarMenuItem("Dynamic Drive", "javascript:parent.framename.location.href='http://dynamicdrive.com'"));