One day I found myself in need of an image carousel, but instead of grabbing a pre-made script I decided to write my own. Why re-invent the wheel you ask? Because I like to learn and I love JavaScript, I don’t get to write custom JavaScript nearly enough. Also, to better understand how this particular wheel works. I want to re-write this eventually to remove the dependency on Scriptaculous.
I shouldn’t have to say this but if you want to use it, you’re free to use it for any purpose.
Dependencies: Scriptaculous – For the fading effect.
Code: http://ryanbrotherton.pastebin.com/f1cc2203c
No tags
