haccordion, a simple horizontal accordion plugin for jQuery
I need one menu with horizontal accordion, but the plugins that I have looked doesn’t like me, too much requirements or code, really I need something more simple, so in few minutes I write a simple plugin.
It is very simple, with a few parameters: speed set the velocity of the animation, headerclass set another classname for header divs (by default “header”), contentclass set another classname for content divs (by default “content”), contentwidth is the final with of each content panel.
code & script & demo at:Â Let me have a blog: haccordion, a simple horizontal accordion plugin for jQuery.
Horizontal Accordion script
Description: This script turns an ordinary UL list into a horizontal accordion! Move your mouse over a LI to expand it side ways while contracting its peers. The HTML markup of the Accordion (UL list) can either be defined inline on the page, or inside an external file instead and fetched via Ajax. Plus you can specify which LI should be expanded by default, whether to persist the last expanded LI (within a browser session), and also, expand a particular LI by passing in different parameters into the URL string. All this makes for a versatile, smooth horizontal accordion!
Demo #1- One content always open, persistence of last expanded content enabled: