logo-dw

Go Back   Dreamweaver Club Forums > Dreamweaver forums > Spry
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 01-10-2011, 03:20 PM   #1
w1w
 
Join Date: Jan 2011
Posts: 2
Default spry accordion: all content panels closed on page-load?

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.
w1w is offline   Reply With Quote
Old 01-10-2011, 04:26 PM   #2
domedia
Administrator
domedia's Avatar
 
Join Date: Dec 2003
Posts: 9,730
Default

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>
The link to the page:
http://labs.adobe.com/technologies/s...llPanelsClosed

.
domedia is offline   Reply With Quote
Old 01-10-2011, 05:16 PM   #3
w1w
 
Join Date: Jan 2011
Posts: 2
Default

Thanks domedia. Apparently I need to brush up on my google skills as well.

w.
w1w is offline   Reply With Quote
Old 01-10-2011, 05:17 PM   #4
domedia
Administrator
domedia's Avatar
 
Join Date: Dec 2003
Posts: 9,730
Default

Well sometimes it's not evident what you should search for, so don't be shy about asking here for help

Quote:
Originally Posted by w1w View Post
Thanks domedia. Apparently I need to brush up on my google skills as well.

w.
domedia is offline   Reply With Quote
Old 02-09-2011, 09:00 PM   #5
dickduran
 
Join Date: Feb 2011
Posts: 1
Default

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:
Originally Posted by domedia View Post
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>
The link to the page:
http://labs.adobe.com/technologies/s...llPanelsClosed

.
dickduran is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:43 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com