Simple Javascript Accordions
Javascript accordians have been used a lot in todays web design world. There are a lot of scripts we have seen and sure you too would have seen them.

We hope our script is one of the smallest accordion script which is extremely simple and easy to integrate. Does’nt require any framework and fully cross-browser compatible.
- The SMALLEST Accordion Javascript ( 1,149 bytes )
- Easy Integration.
- Does’nt require any Framework.
- Can be used as a Tab system ( sample in the demo )
- Fully Cross-Browser Compatible
- Source Files Included.
Below is a live demo of the script.
Below is the snippet to control the accordion.
<body onload=”new Accrodian(’my-menu’,5,’heighlight’);”>
which is in form of:
<body onload=”new Accordian(’container of your accordion’,speed,’highlighted accordion class name’);”>
This file has been downloaded 36797 times.

(186 votes, average: 4.59 out of 5)










flo Said:
May 11th, 2008 at 4:14 am
is it possible that at the beginning every button are close?
Haneef Said:
May 8th, 2008 at 5:39 am
Hi,
Thanks for the script . . . i have read all he comments tried my luck with all possibilities but text inside my content is looking stretch out. same like available DEMO its not smooth .
Tried putting wrapper class as suggested but no sucess.
Please help me in resolving this.
Jason Said:
May 7th, 2008 at 7:24 pm
Can’t get the css to align the squares with the tabs, in the tabbed version. the text box is always larger or smaller than the width of the tabs.