The updated accordion script is available here.
This JavaScript accordion is only 1.5kb. If you have a small project that could use an accordion and don’t want to include an entire JavaScript framework to do the job then give this script a try.
You will need to call the following function in your body onload where the first parameter is the div id of the accordion parent and the second tells the script which section to expand onload.
slider.init('slider',1)
This script has been tested in all major browsers and is available free of charge for both personal or commercial projects under the creative commons license. Community support is available here. Paid support is also available, contact me for details.
Click here to download the source code.
Updated 5/27/2008 – Slightly minified the code cutting off 1kb and added the script into a global namespace.
Updated 6/19/2008 – Shaved of a few bytes and added change the “c” variable to identify which section to be expanded onload.

Pingback: fritz freiheit.com » Friday link dump
Pingback: plainbeta’s New Design - Pier 3 | plainbeta
Pingback: diploD » Blog Archive » Parlando di javascript..
Pingback: Animated JavaScript Accordion V2 - Web Development Blog
Pingback: Animated Accordion Script Without Any JS Framework | Creative VOI
Pingback: Animated JavaScript Accordion V2 « Mobile and Web Technology