Wednesday, December 19, 2007

scrolling numbers with javascript

I needed a javascript based list that could scroll numbers. Additionaly, the list needed to have a min and max values.

I found one list that created an initial set of information and then shifted the div around - after spending a large amount of time trying to figure out the position I decided to create a list based on clock cycle.

The new list would compute values based on a global tracker and spin new values based on a clock ticker. At this point I went and found a clock ticker and used that as the base.

Next I wrote functions to create a list of values and pushed the values to a div.
see code below.
This could be modified to work with an array of strings...












No comments: