I echo lordex' sentiments. Scrollers are really annoying.
If you must, and want to code your own, the general idea is that you put your text in a <span/>, then use javascript timers to change the margin style element of the span every couple of milliseconds.
And if you do do it, be nice and make it a seperate file (not embedded in your html) so that people with adblock can nuke it easily