How to create Web sites easily

The most complete guide for the Web page builder
All you'll
ever need to know about homepages and HTML

How to do marquees

Click here to return to the index

Have you seen those things that move from right to left, or those things that type one by one the letters in a text box? We'll learn how to do marquees and ticker-tapes (they are called so). First, how to do a marquee (this will work only in Internet Explorer 3.0): use the <MARQUEE> and </MARQUEE> tags. The marquees at the top of the Main page and HTML help page are examples of that (use the View Source Code feature on your browser to check for the code on <MARQUEE> and other tags). To modify the marquee's behavior, you have plenty of options that you put on the <MARQUEE> tag, for example ALIGN=, that lets you control how surrounding text aligns:

or the BEHAVIOR= tag, that specifies how the marquee behaves:

or the BGCOLOR= tag, that you use it identically as described in the Background and text colors part of the Document formatting section. You can control the width of the marquee with a WIDTH= parameter too. The direction is controlled by the DIRECTION=. The LOOP= parameter controls how many times the marquee shows its text; specifying -1 or INFINITE as a parameter will make the marquee scroll indefinitely. The SCROLLAMOUNT= parameter specifies how much the marquee scrolls every tick, the default is 10.

This is a scrolling marquee

This is a sliding marquee

This is an alternating marquee

all of which have been set to 60% of the total width, and a SCROLLAMOUNT setting of 20.

Internet Link Exchange
Member of the ILE Free Home Pages at GeoCities


[Main page] [HTML help] [MIDI page] [Murphy's Laws] [More information]
[Feedback form to email me] [Sign guestbook] [Mail me!]