Prototype Scroller Object

Recently an old friend, David Moffitt, asked me to tweak some Javascript I wrote for him and his company GTTS over a year ago. Looking at it again after such a long time was scary. The code was terrible. All functions, no classes, just a mess. I rewrote it for them as a Prototype based Class. Very clean and easy.

The Scroller object creates a simple news ticker that nicely rotates messages, stops when you mouse over, and continues when you mouse out. Yep, thats it. Check out my github project. View the comments in scroller.js for directions on how to use it.

Why the almost empty github project? The theory is I might one day write more Javascript and need a place to put it. So for now, only one file in that “project” but just you wait.

1 comment so far

Great code work, I was impressed by the ease of implementation.

David Moffitt
October 3rd, 2008 at 12:38 am

Leave a Comment

Name (required)

Mail (will not be published) (required)

Website

Comment

Rambling one post at a time