HTML:Element:marquee
From MDC
[edit] HTML Marquee Element
<marquee>...</marquee> - This element is used to insert a scrolling area of text.
[edit] Attributes
- behavior
- Sets how the text is scrolled within the marquee. Possible values are
scroll,slideandalternate. If no value is specified, the default value isscroll. - bgcolor
- Sets the background color through color name or hexadecimal value.
- direction
- Sets the direction of the scrolling within the marquee. Possible values are
left,right,upanddown. If no value is specified, the default value isleft. - height
- Sets the height in pixels or percentage value.
- hspace (1.9a)
- Sets the horizontal margin
- loop (1.9a)
- Sets the number of times the marquee will scroll. If no value is specified, the default value is −1, which means the marquee will scroll continuously.
- scrollamount
- Sets the amount of scrolling at each interval in pixels. The default value is 6.
- scrolldelay
- Sets the interval between each scroll movement in milliseconds. The default value is 85. Note that any value smaller than 60 is ignored and the value 60 is used instead, unless truespeed is specified.
- truespeed (1.9a)
- Determines whether scrolldelay values lower than 60 are ignored or not. Possible values are
trueorfalse. The default value isfalse - vspace (1.9a)
- Sets the vertical margin in pixels or percentage value.
- width
- Sets the width in pixels or percentage value.
[edit] Event handlers
- onbounce
- Fires when the marquee has reached the end of its scroll position. It can only fire when the behavior attribute is set to
alternate. - onfinish
- Fires when the marquee has finished the amount of scrolling that is set by the loop attribute. It can only fire when the loop attribute is set to some number that is greater than 0.
- onstart
- Fires when the marquee starts scrolling.
[edit] Methods
- start
- Starts scrolling of the marquee.
- stop
- Stops scrolling of the marquee.
[edit] Examples
<marquee>This text will scroll from right to left</marquee>
<marquee direction="up">This text will scroll from bottom to top</marquee>
<marquee direction="down" width="250" height="200"
behavior="alternate" style="border:1px solid black">
<marquee behavior="alternate">
This text will bounce
</marquee>
</marquee>
[edit] Notes
The marquee tag is originally an IE invention.
The marquee tag is not valid according to the HTML or XHTML specifications. Page authors concerned with validation should not use this tag.
The marquee tag is implemented in Mozilla by using an XBL binding: http://lxr.mozilla.org/seamonkey/source/layout/style/xbl-marquee/xbl-marquee.xml
| HTML Elements |
| A B C D E F G H I J K L M N O P Q R S T U V W X Y Z |
| (Quick Links: HTML Element Cross Reference, HTML Category) |