Text Scrolling on Webpages

A small function in JavaScript I wrote for text or other objects scrolling for webpages. View the source to copy and adapt JavaScript and CSS source.

Hi, this is text that should scroll. And it has a link in it.
Start Stop

#ScrollText Width Debugger: (Press start).

Stop the scroller when the text has passed, to find out what width you should use.
Put the value in the CSS #ScrollText width property, without the minus-sign.

E.g. if you stop it at -500, the #ScrollText width should be set to 500px.
This will make the scroller know when the text is done scrolling and set it's
left property to #ScrollBar offsetWidth for new scrolling.

This document was last updated June 11th, 2011.
Written by: Dag Jonny Nedrelid
©2007-2012 http://thronic.com


Feel free to leave a comment.
Name:
URL:
0