Since the marquee tag is used less and less now, most scrolling effects are implemented using JavaScript. For those who don’t understand why not just use the marquee tag, you might as well read this article first.
The first method: Use javascript to simulate marquee's approach.