Results 1 to 3 of 3

Thread: pop it menu target

  1. #1
    Join Date
    Dec 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default pop it menu target

    how do i get the pop it menu to target a iframe?

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  3. #3
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Assuming your iframe has an ID of "myiframe", try altering one of the menu items so it reads:

    linkset[0]='<div class="menuitems"><a href="javascript:document.getElementById('myiframe').src='http://www.dynamicdrive.com'">Dynamic Drive</a></div>'

    In other words, the code:

    javascript:document.getElementById('myiframe').src='http://www.dynamicdrive.com'

    should be used as the href portion of the menu link.

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
  •