Marquee Tag Article Index for
Marquee
Website Links For
Marquee
 

Information About

Marquee Tag





USAGE SYNTAX


The marquee tag uses the following syntax:
This is text that will appear scrolling


ATTRIBUTES

  • Align: Uses the same syntax as the Img tag.

  • Behavior: Allows the user to set the behavior of the marquee to one of three different types:

  • --- ''Scroll'' - DEFAULT. Scrolls the text from right-to-left, and restarts at the right side of the marquee when it has reached the left side.

  • --- ''Slide'' - Deprecated

  • --- ''Alternate'' - Text 'bounces' from the left side of the box to the right side.

  • This text will bounce from left to right

  • Bgcolor: Sets the background color of the marquee.

  • This marquee's background color will be blue.

  • Direction: Sets the direction of the marquee box to either left-to-right or right-to-left. Later browsers added support for a movie credit style bottom-up and top-down values.

  • This text will scroll from left to right, instead of the default right to left.

  • Height: This sets how tall the marquee should be.

  • The height of this marquee is twenty pixels.

  • Width: This sets how wide the marquee should be.

  • This marquee is only a hundred pixels wide!

  • Loop: This sets how many times the marquee should 'Loop' its text.

  • You will only see this text twice before it stops playing.

  • Scrollamount: This is how many pixels the text moves between 'frames', in pixels.

  • This text will move ten pixels per 'frame'

  • Scrolldelay: This sets the amount of time, in milliseconds, between 'frames'.

  • This would be so fast, you couldn't see it!

This would be so slow, you wouldn't even get a sense of animation.


PRACTICAL USES


The marquee is most often used for displaying news, but it has a wide variety of relevant functions. For instance, it may be used for displaying large amounts of text in a space-saving manner. It could be used for displaying lists, or even scrolling advertisements.


COMPLIANCE


The marquee element type was first invented for Microsoft 's Internet Explorer and is still supported in its descendants. Both Mozilla Firefox and Opera support it for legacy page compatibility, although many other browsers do not.


SEE ALSO