Let me have a blog: haccordion, a simple horizontal accordion plugin for jQuery

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.

v0.1

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:

http://www.dynamicdrive.com/dynamicindex17/haccordion.htm

0saves
If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

Leave a Reply

Your email address will not be published. Required fields are marked *