Extending the jQuery Easy Accordion Plugin: Add looping option

jquery-easyaccordian

We found the jQuery Easy Accordion plugin to be very useful while creating the new homepage for INDATA. We ran into a small issue when we needed the accordion to stop after a single cycle, by default the plugin does not support this, so we modified the plugin to include this new option.

Download jQuery Easy Accordion plugin with looping functionality

The new variable is called “continuous”, it is set to true by default. Setting it to false will cause the slideshow to stop automatically rotating after the last slide has been displayed. Here’s a little usage example:

jQuery('#featuredSlides').easyAccordion({
	slideNum:false,
	autoStart: true,
   	slideInterval: 6000,
   	continuous: false
});

You can also review INDATA’s homepage to see this in action.

This has been tested in IE7, IE8, IE9, Firefox, Chrome & Safari.

Questions? Suggestions? Leave a comment and we’ll do what we can to help.

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Notify me of followup comments via e-mail. You can also subscribe without commenting.