The Accordion Object

Oct 8, 11:53 PM

Skills/tech: Javascript
Accordion example
accordion demo

I’ve been all excited about JavaScript lately, and I also wanted my own version of an expanding DIV, so I got down and made one. It’s not perfect, and [beware] it probably needs a lot of debugging. But it works, and as far as I know it works fine in Exploder, too.

View the Accordion demo.**

If you’re interested, here’s the code. It’s not commented all that much, but if you know what you’re doing, it should be all right. Email me if you need sample code. To all JavaScript nerds out there: be merciful. This was my first attempt at doing something of any complexity in JavaScript.

If you make any improvements, have suggestions, please let me know. If you use it, all that I ask is that you give me a little credit.

** Won’t work with older browsers, and – obviously – without JavaScript enabled. No malicious code here! Check the source if you don’t believe.

Bookmark and Share



Valid XHTML 1.1 Valid CSS
             © 2008, garvin