Nov
09
Prototype Marquee
Post Categories: Development • Javascript • Prototype |Posted on November 9th, 2008While developing a website for a client, I was tasked with creating text that would fade in and out continuously. I figured that use case would be useful for many websites so I decided to create a class. It turns out the class is useful for cases where any html content has to be shown and hidden. The class is called Marquee.
I wrote several methods for controlling the Marquee class. Although I didn’t implement them for my current use case, I though they would be useful in the future. Methods included are
- load
- append
- start
- stop
- clear
- empty
- next
- previous
The class also accepts various options for configuring the Marquee and its messages. Last, I thought it would useful to monitor the different states of the Marquee so it allows several events to be observed. These are:
- start
- stop
- change
- before
- after
You can find examples and the project page.
Tags: JavaScript Frameworks, Prototype
December 3rd, 2008 at 8:32 pm
Hey Kevin!
Excellent stuff man!
This class is in my To-Do list to integrate with the ZIkula web framework (my prefered one) but i have an issue: why no IE compatibility tests? You may hate IE as i do, but seems that this great class is not working on IE? i would like to have no concerns about IE, but well, you know…
Thanks a lot and keep it up!
December 4th, 2008 at 9:01 am
Sorry for the lack of support for IE. Since I develop on a Mac 99% of the time, it has just been hard to break away lately to test the script in IE. I will make that my priority over the next few days and upload any necessary updates. Thanks for your interest and support.
December 4th, 2008 at 12:18 pm
Cool
I develop over Linux 100% of the time, and have to use emulators to test IE, or sometimes browsershots services out there when it’s XHTML + CSS. I’ll begin the integration right now!
Looking forward for the minor fixes for IE
and thanks a lot again!