Results 1 to 6 of 6

Thread: Arrow Side Menu -> gotourl on collapse

  1. #1
    Join Date
    Oct 2010
    Posts
    5
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Arrow Side Menu -> gotourl on collapse

    Hi there,

    URL: http://www.dynamicdrive.com/dynamici...menu-arrow.htm

    i have a question about the Arrow Side Menu (accordion)

    Is it possible to go to a URL if i collapse the accordion? Currently the accordion will only closed without executing the link.

    clickgo works only by expanding the header but i need it for collapsing too

    Any ideas?

    thx fuchs

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

  3. #3
    Join Date
    Oct 2010
    Posts
    5
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Thanks, works perfect!

    Now, i have another question. Is it possible to collapse the accordion and go to a URL with this code?

    <a href="#" onClick="ddaccordion.collapseone('mypets', 0); return false">Expand 1st header</a>

    Greets

  4. #4
    Join Date
    Oct 2010
    Posts
    5
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    DD Admin?

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

    Default

    Sorry for the delay. Inside the modified .js file, try finding the below line:

    Code:
    $targetHeader.trigger("evt_accordion")
    and change that to:

    Code:
    $targetHeader.trigger("evt_accordion", true)
    DD Admin

  6. #6
    Join Date
    Oct 2010
    Posts
    5
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    No problem Thx for help

    works perfect!

    Greets

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
  •