![]() ![]() ![]() ![]() ![]() | ![]() ![]() ![]() ![]() |
BASIC MARQUEE
<marquee>Then your text</marquee>
This is the basic tag for a marquee. You must always close with </marquee>.
COLOR
<marquee bgcolor="#xxxxxx">Then your text</marquee>
This sets a background color for your marquee. The #xxxxxx is the hexadecimal number for your
color. For some hex color codes, go to my Netscape Color Chart.
WIDTH
<marquee width=n>Then your text</marquee>
This sets the width of the marquee. n is expressed in pixels or % of page width.
BEHAVIOR
NOTE: Beware of the spelling! If you use behaviour instead of behavior,
then it will not work.
<marquee behavior="alternate">Then your text</marquee>
<marquee behavior="slide">Then your text</marquee>
Note: With IE3.0 versions, the marquee will scroll across once and stop at the left side.
With IE4.0, the marquee will not stop, but will jump across and scroll again, instead of
scrolling off the page as the basic marquee does.
DIRECTION
<marquee>Then your text</marquee>
<marquee direction="right">Then your text</marquee>
<marquee direction="up">Then your text</marquee>
<marquee direction="down">Then your text</marquee>
HTML TAGS
HTML tags do not work between the marquee tags with IE3.0 versions, but they do
with IE4.0.
Therefore, if you wish to change the font size color or face of your marquee,
you must specify the font outside of the marquee tag. If you try to use it
between the tags ... the font changes might not work, depending on which version of IE is being
used to view your page!
<marquee>
<font face="Comic Sans MS" size=5color="#CC33FF">
The font MIGHT NOT change. </font>
</marquee>
<font face="Comic Sans MS" size=5color="#CC33FF">
<marquee>The font changes WILL work!!! </marquee>
</font>
If you want to have several lines scrolling across your page, instead of one long line, then
you
will need to put each line in its own marquee tags. The <p> and <br>
tags might not work between the marquee tags. Be aware that the lines will scroll across
the page at slightly different speeds unless they are the exact same length.
<marquee>Here is the first line.........<br>
And here is the next.<br>
This third line is the last one! The line breaks MIGHT NOT work.</marquee>
<marquee>Here is the first line.........</marquee>
<marquee>And here is the next.</marquee>
<marquee>This third line is the last one! The line breaks WILL
work.</marquee>
SCROLLDELAY
<marquee scrolldelay=n>Then your text</marquee>
This is supposed to set the number of milliseconds between each scroll of the marquee, where
n is the number required.
SCROLLAMOUNT
<marquee scrollamount=n>Then your text</marquee>
The scrollamount is supposed to set the space, in pixels, between successive scrolls of the
marquee, where n is the number of pixels required. It also seems to affect the speed of
the marquee as well. The higher the scrollamount number, the faster!!
LOOP
<marquee loop=n>Then your text</marquee>
This sets the number of times that the marquee will loop, or scroll. If you do not specify, it
will loop continuously.
COMBINING BLINK AND MARQUEE
Blink works in Netscape but not Internet Explorer.
Marquee works in Internet
Explorer but not Netscape.
So ... combine the two tags so that your text will do something in either browser!
<center><blink><marquee>Using marquee and blink tags together!
</marquee></blink></center>
Comments