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.
all of which have been set to 60% of the total width, and a SCROLLAMOUNT setting of 20.
Member of the ILE | Free Home Pages at GeoCities |