Results 1 to 2 of 2

Thread: Accordion header link

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

    Default Accordion header link

    1) Script Title: Accordion Content script (v1.7.1)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...daccordion.htm

    3) Describe problem:
    Hi,
    I wonder is it possible somehow to make expanded header to remain expanded when you click on a link which is within that header.

    here is the test page: http://www.zviz.net/TEST/accordion/s...suradnici.html

    What I'm trying to achieve is when you expand one header you get an mailto link inside, and when you click on that mailto instead of collapsing the header, to leave that header still expanded.

    I found a solution how to "click through" : http://www.dynamicdrive.com/forums/s...55&postcount=9 but don't know how to leave header expanded.

    thanks in advance,
    cheers

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

    Default

    Hmm actually by default clicking inside the sub content area of a header shouldn't collapse the header, since the "active" area is only within the header area. Looking at your HTML for your Accordion Content, it's hard to tell if there are any containership issues. The markup for the sub content should not be contained inside that of the header, but should exist on the same level, something like:

    Code:
    <h1 class="headerclass">Header Text</h1>
    
    <div class="subcontent">Sub content here</div>
    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
  •