Accordion Content script


Version: 1.3
Size:
3KB
Requirements:
No special requirements
Seller:
Dynamic Drive
Price:
Free
System:
Windows Vista/XP/2000
Rating:
4.5
License:
Freeware

Description - Accordion Content script



Group contents together and reveal them on demand when the user clicks on their associated headers, with Accordion content script! Specify whether only one content within the group should be open at any given time, style the headers depending on their content state, and even enable persistence so the state of the contents is preserved within a browser session. The script enlists the help of the jQuery library for its engine. There are lots of configurable options, so lets get to them:Headers and their contents to expand/Collapse on the PaGE are identified through the use of shared CSS class names for easy set up. Ability to specify which contents should be expanded by Default when the page first loads. Specify whether only one content should be open at any given time (collapse previous before expanding current. Enable optional persistence so when the user expands a header then returns to the page within the same browser session, the content state is preserved. Style the two states of the headers easily by setting two different CSS classes to be added to the header depending on whether its content is expanded or collapsed. You can also add additional HTML to the beginning or end of each header, such as an icon image that reflects the current state of the content. Two event handlers oninit() and onopenclose() can be used to run custom code when an Accordion Content first loads and whenever a header is opened/closed, respectively. New in v1.3 Arbitrary links can be defined elsewhere on the page performing the same functions as if the user had directly clicked on a header, such as expand a particular header, toggle a header, or expand all headers within a group. A Link from another page linking to the target page can cause the desired headers on the later to expand when loaded, via the URL parameter string. New in v1.3



More in Web Design-Accordion Content script

Browser Session Accordion Content Accordion Content Script