CookieAutoAccordion

CookieAutoAccordion is an add-on for AutoAccordion which adds the use of a cookie to remember where it was last time and opens the accordion right back up to where it last was next time the page loads. You’ll need to load up mootools with Accordion and Cookie included, and then the AutoAccordion script before this one for it to work.

It offers two new options:

cookieName: The name of the cookie to remember the accordion’s place in. Defaults to "accordion-place"
cookieOptions: A hash containing options to pass to Cookie.set when storing the information. See the Cookie.set docs for info on how to use this. Defaults to {path: "/", duration: 30}

Other than that, using it is just the same as AutoAccordion, except you use new CookieAutoAccordion where ever you would normally have new AutoAccordion.

You can check out a demo, then go grab the source, and don’t forget to give something!