Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript I can't figure out why a JS text scroller isn't working. Reply To: I can't figure out why a JS text scroller isn't working.

#181770
Chromawoods
Participant

One potential problem is that you are not specifying a unit (px, em, % etc.) for the top property. But in general though, the solution looks pretty dated. :) Take a look at this code, I cleaned it up a bit for you. It is by no means perfect but it could serve as a starting point perhaps.

You could also use something like Velocity.js.