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 #305

In Accordion Panel Magic 3 (APM3) is there any way to have a selected number of panels open when the page first loads?

The Answer

Prepared Jul. 2013 by Gerry Jacobsen, PVII

The Accordion Panel Magic 3 (APM3) system auto-opener is designed to open a single panel on page load. To open a set of selective panels you can apply this code tweak:

1. Open the p7AP3scripts.js file and locate this block of code in the P7_initAP3() function, around line 281:

   }
   p7AP3a=true;
}

2. Make a new line just after the second line and then Copy and Paste this into the new line:

   P7_AP3control('p7AP3t1_2','open');
   P7_AP3control('p7AP3t1_3','open');

so that it now looks like this:

   }
   p7AP3a=true;
   P7_AP3control('p7AP3t1_2','open');
   P7_AP3control('p7AP3t1_3','open');
}

3. Save and close the file.

The above will open panel 2 and panel 3. Add another line to open a third panel, if needed.

Back to the questions list