ticker.js
Ticker - slowly appearing (and disappearing) text.
Objects
Methods
Constants
- TickerData.ADD_START - add characters to the beginning
- TickerData.ADD_END - add characters to end
- TickerData.CLEAR_ALL - remove all characters at once
- TickerData.CLEAR_START - remove characters from beginning
- TickerData.CLEAR_END - remove characters from end
- TickerData.TIMING_PERCHAR - delay is specified per character
- TickerData.TIMING_GLOBAL - delay is specified per string
- TickerData.LOOP_NONE - don't loop
- TickerData.LOOP_BACK - draw text, hide it and stop
- TickerData.LOOP_FULL - loop
Creates Ticker. It will show text in element. Argument optObj is an object containing the following:
- loop - a LOOP_ constant
- add - an ADD_ constant
- clear - a CLEAR_ constant
- timing - a TIMING_ constant
- delay - delay in msec
- pause - pause (in msec) when all text is drawn
var t = new Ticker(div, "Hello world!", {delay:30,timing:TickerData.TIMING_PERCHAR});
t.start();
Starts ticking.
Stops ticking.