Results 1 to 2 of 2

Thread: Accordion Content script, how to open in "target="_parent"?

  1. #1
    Join Date
    Jun 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Accordion Content script, how to open in "target="_parent"?

    Accordion Content Script
    http://www.dynamicdrive.com/dynamici...daccordion.htm

    Hi all, sorry to bother you with this, but I couldnt find anything when searching the forum.

    I use the Accordion Content script menu for a golf tour site.
    The menu is placed in an Iframe, so I only have to edit one file for menu changes.

    I would like to open URLs when the expanding headers are clicked, using revealtype: "clickgo".

    But I cant figure out how to set target to _parent. The script incist on opening the page in the iframe even with "target="_parent" added to the link.

    Anyone who knows how to do it?

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

    Default

    Inside the .js file, try finding the below line, and adding to it the part in red:

    Code:
    					setTimeout(function(){parent.location=targetLink.href}, 200) //ignore link target, as window.open(targetLink, targetLink.target) doesn't work in FF if popup blocker enabled
    DD Admin

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
  •