Results 1 to 3 of 3

Thread: Top Navigational Bar II loads URl in iframe

  1. #1
    Join Date
    Nov 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Top Navigational Bar II loads URl in iframe

    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

  2. #2
    Join Date
    Jan 2007
    Location
    Oklahoma
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry

    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?

  3. #3
    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

    Just glancing at what it says on the demo page:

    Code:
    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:

    Code:
    javascript:parent.framename.location.href='http://dynamicdrive.com'
    So, you would have something like so:

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

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •