Results 1 to 2 of 2

Thread: open and close!

  1. #1
    Join Date
    Dec 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool open and close!

    1) Script Title: ddaccordion

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

    3) I have two seperat instances of of tab system that look like 1, i ref them with tabb(opener)/box(content) and with tabb2/box2, i have them all in a row and when i go from tabb(normally 4-5 instances) to tabb2(2 instances) there is no visible difference (just how i want, it looks like a nice row of one type of tabs - i did this because i didnt know how many of "tabb" there would be on any given page),

    The problem lies in a button further up the page, i want it to close tabb2 when i hit it, but it keeps it open, how should i code another line of text in the link?
    Code:
    <a class="buyoptions" href="#buyitem" onclick="ddaccordion.expandone('tabb', 0); return false; ddaccordion.collapseall('tabb2')"></a>
    should it be like this?.... it doesnt show any syntax errors, but it doesnt work either

    Can I place some code to close the other set of tabs into the "custom code section?"
    Last edited by indelible; 06-10-2009 at 01:08 PM.

  2. #2
    Join Date
    Dec 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile resolution

    Code:
     onclick="ddaccordion.collapseall('tabb2'); ddaccordion.expandone('tabb', 0); return false "
    seemed to do it?... but surely just having the order round the other shouldnt have been the problem?.... ahhh well.

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
  •