Scroll To Top

Enter a query to search our site. Note that you can use "*" and "?" as wildcards. Enclosing more than one word in double quotes ("CSS Layout") will search for the exact phrase.

PVII Knowledge Base

1. Select a product ...
2. Select category ...
3. Search the Knowledge Base...

Question #223

Is there a way to have Open All panels and Close All panels actions with Accordion Panel Magic?

The Answer

Prepared Oct. 2007 by Gerry Jacobsen, PVII

Note: This feature is built into Accordion Panel Magic 2

Here's how to add Open All - Close All links for Accordion Panel Magic:

Open All Panels:

<a href="javascript:;" onclick="P7_ABall('1_a');return false">Open All</a> 

Close All Panels:

<a href="javascript:;" onclick="P7_ABall('1_c');return false">Close All</a> 

The argument:

'1_a', the first number is the number of the Accordion Panel Magic component, an underscore, and then either a "a" for open, or "c" for close.

Also, in order for this to work be sure that you have the "Allow Multiple Open Panels" option checked.

See Example

Back to the questions list