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

Thread Tools Display Modes
Old 11-15-2011, 06:54 AM   #1
Join Date: Nov 2011
Location: Alameda, CA
Posts: 160
Default Spry Accordion

is there a way to link to a specific tab on a spry accordion install? I am going to have one page with an accordion install. I would like to be able to be able to navigate to that page with a specific tab open if possible.
BullDog is offline   Reply With Quote
Old 11-15-2011, 02:23 PM   #2
DWcourse's Avatar
Join Date: Apr 2009
Posts: 3,276

From http://labs.adobe.com/technologies/s...dion_overview/

Set the default open panel

You can set a certain panel to be open when the page containing the Accordion widgets loads in a browser.

Set the defaultPanel option in the constructor as follows:
<script type="text/javascript">
var acc8 = new Spry.Widget.Accordion("Accordion1", { defaultPanel: 2 });
Note: The accordion panels use a zero-based counting system, so setting the value to 2 opens the third panel.
If my answer helped, check out DWcourse.com for Dreamweaver tips and tutorials.
DWcourse is offline   Reply With Quote

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 12:47 AM.

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