The cow thinks scrolling marquees are fun.


Here is a fun little trick you can use to make text scroll across your screen. Just paste in the sample code and add your custom message to try it yourself.

<marquee>Your text message here.</marquee>

This is the typical way your text will scroll across...

You can can add a direction attribute and a value of "left" or "right" and have it scroll in the direction you want. Besides specifying left or right, you can also specify "up" or "down" as well. (It does take a bit of vertical space when you use up or down.)

<marquee direction="right">Your message</marquee>

This will make your text scroll from the right....

Another trick is to use a behavior attribute to make the text alternate from side to side.

<marquee behavior="alternate">Your message</marquee>

This will make your message bounce back and forth....

What do you suppose happens when you combine an up or down direction with the behavior attribute?

<marquee direction="up" behavior="alternate">Your message</marquee>

It will make the text go up and down,
kind of like it's bouncing between the floor and ceiling.
It's a great way to draw attention to something.

You can also add a break tag to your message to keep the line length where you want it and add it inside a table to control its placement. Add a link to test the skill of your visitors. How fun!

I didn't figure all this stuff out on my own, but I read it in one of my favorite newsletters, Boogie Jack's "Almost a Newsletter."

See if you can click on his link to sign up!

Boogie Jack

Next Tip

Scrolling marquees are fun, but the next tip is even funnier.