|
![]() |
#1 |
Join Date: Jan 2011
Posts: 2
|
![]() Hi. I'm looking for a way to set up an accordion such that all the panels are closed (only the panel tabs visible) on page load, and then clicking any panel tab opens that tab's content panel to a specific height.
I see where I can set a value to have the first panel on any page be open to a specific height on page load, but would like to have them all closed up instead. Any/all pointers appreciated. Thanks. w. |
![]() |
![]() |
![]() |
#2 |
Administrator
![]() Join Date: Dec 2003
Posts: 9,730
|
![]() I don't use the Spry Accordion myself, but I did a search on Google and this is what it gave me.
Code:
<script type="text/javascript"> var acc1 = new Spry.Widget.Accordion("Acc1", { useFixedPanelHeights: false, defaultPanel: -1 }); </script> http://labs.adobe.com/technologies/s...llPanelsClosed .
__________________
Please read this before asking for help. - New Tutorial: Define Your Site ![]() |
![]() |
![]() |
![]() |
#3 | |
Join Date: Feb 2011
Posts: 1
|
![]() I am super new to using the spry accordion too. Where do I add that bit of code that you provided? The .js file? Before my div tags?
Super confused.... Thanks in advance Quote:
|
|
![]() |
![]() |
![]() |
#4 |
Join Date: Jan 2011
Posts: 2
|
![]() Thanks domedia. Apparently I need to brush up on my google skills as well.
w. |
![]() |
![]() |
![]() |
#5 |
Administrator
![]() Join Date: Dec 2003
Posts: 9,730
|
![]() Well sometimes it's not evident what you should search for, so don't be shy about asking here for help
![]()
__________________
Please read this before asking for help. - New Tutorial: Define Your Site ![]() |
![]() |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|