|
|
|
|

A marquee is another name for scrolling text. It will only work with Microsoft Internet
Explorer.
These are some of the attributes you can add to the basic marquee tag
(<marquee>...</marquee>):
ALIGN=LEFT|CENTER|RIGHT|TOP|BOTTOM
BEHAVIOR=type
BGCOLOR=color
DIRECTION=direction
HEIGHT=n
HSPACE=n
LOOP=n
SCROLLAMOUNT=n
SCROLLDELAY=n
VSPACE=n
WIDTH=n
- ALIGN=LEFT|CENTER|RIGHT|TOP|BOTTOM
- Specifies how the surrounding text should align with the marquee. The default is LEFT.
| LEFT |
Surrounding text aligns with the
left of the marquee. |
| CENTER |
Surrounding text aligns with the
center of the marquee. |
| RIGHT |
Surrounding text aligns with the
right of the marquee. |
| TOP |
Surrounding text aligns with the
top of the marquee. |
| BOTTOM |
Surrounding text aligns with the
bottom of the marquee. |
- BEHAVIOR=type
- Specifies how the text should behave. The type can be one of these values:
| SCROLL |
Start completely off one side,
scroll all the way across and completely off, and then start again. This is the default. |
| SLIDE |
Start completely off one side,
scroll in, and stop as soon as the text touches the other margin. |
| ALTERNATE |
Bounce back and forth within the
marquee. |
- BGCOLOR=color
- Specifies a background color for the marquee. The color can be either a
hexadecimal number (optionally preceded by a #) specifying a red-green-blue color value,
or a color name (red, blue..).
- DIRECTION=direction
- Specifies in which direction the text should scroll. The direction can be LEFT or
RIGHT. The default is LEFT, which means scrolling from right to left.
- HEIGHT=n
- Specifies the height of the marquee, either in pixels or as a percentage of the screen
height. To specify a percentage, the n must end with a percent sign (%).
- HSPACE=n
- Specifies left and right margins for the outside of the marquee, in pixels.
- LOOP=n
- Specifies how many times a marquee will loop when activated. If LOOP=INFINITE,
the marquee will loop indefinitely.
- SCROLLAMOUNT=n
- Specifies the number of pixels between each successive draw of the marquee text.
- SCROLLDELAY=n
- Specifies the number of milliseconds between each successive draw of the marquee text.
- VSPACE=n
- Specifies top and bottom margins for the outside of the marquee, in pixels.
- WIDTH=n
- Sets the width of the marquee, either in pixels or as a percentage of the screen width.
To specify a percentage, the n must end with a percent sign (%).
Example:
<marquee align="middle" behavior="alternate"
bgcolor="#FFFF00" direction="right" scrollamount="10"
scrolldelay="200" width="60%" border="0"gt; This is an
alternating marquee. </MARQUEE>
This is the marquee the above code will display: (remember that it will only work in
MSIE)
Congratulations!! You
have finished the beginner's guide!! You should now be able to easily make web pages. If
you don't already have a website I recommend you go to geocities
and sign-up for free website space, make a website about anything you want, and impress
your friends and family!! |
|