Home / code

Scroll text

Writer: Christophe Wolfs
Published: 13 April 2008

You can let text scroll on you page without the need of JavaScript.

scrolldelay="180" is the speed.
width="800" is the width.
height="16" is the height.

You can add
direction="left" is the direction (default is left, can be up,down,left,right)
loop="2" it only loops twice and then it stops.
behavior="alternate" text bounce and change direction (default is scroll)

<marquee scrolldelay="180" width="800" height="16">Text to scroll</marquee>