marquee

< html‎ | elements
Jump to: navigation, search

marquee

This article is Not Ready.


Non-Standard

Summary

Defines a scrolling area (usually horizontal) of text.


Overview Table

DOM Interface HTMLMarqueeElement


Compatibility

Do you think this data can be improved? You can ask to add by opening an issue or make a pull request.

Desktop

FeaturesChromeFirefoxInternet ExplorerOperaSafari
Basic support
1.0
Yes
1.0
Yes
2.0
Yes
7.2
Yes
1.2
Yes
truespeed attribute
?
none
?
Unknown
4.0
Yes
?
none
?
none
hspace/vspace attribute
?
Unknown
?
Unknown
?
Unknown
?
Unknown
?
Unknown
loop attribute
?
Unknown
?
Unknown
?
Unknown
?
Unknown
?
Unknown

Mobile

FeaturesAndroidFirefox MobileIE MobileOpera MobileSafari Mobile
Basic support
?
Unknown
1.0
Yes
?
Unknown
?
Unknown
?
Unknown
truespeed attribute
?
Unknown
1.0
Yes
?
Unknown
?
Unknown
?
Unknown
hspace/vspace attribute
?
Unknown
1.0
Yes
?
Unknown
?
Unknown
?
Unknown
loop attribute
?
Unknown
1.0
Yes
?
Unknown
?
Unknown
?
Unknown

Examples

The following example uses the MARQUEE element to scroll the marquee from left to right across the screen, moving it 10 pixels every 200 milliseconds.

<MARQUEE DIRECTION=RIGHT BEHAVIOR=SCROLL SCROLLAMOUNT=10 SCROLLDELAY=200>
This is a scrolling marquee.
</MARQUEE>

The following example shows some uses of the scrollLeft and scrollTop properties with the marquee element.

<MARQUEE id=m1 direction=right style="border-width:2px;border-style:solid;" 
width=200 height=200>right</MARQUEE><BR>
<!-- Push this button to read the scrollLeft and scrollTop property values 
as the marquee scrolls. -->
<BUTTON onclick="alert('scrollLeft: ' + m1.scrollLeft + ' scrollRight: ' + m1.scrollTop)">
Read</BUTTON>
<!--When the marquee is stopped, you can set scrollLeft in a horizontal marquee, 
or set scrollTop in a vertical marquee.   -->
<BUTTON onclick="m1.stop();m1.scrollLeft = 190;">Stop & Set scrollLeft=190
</BUTTON>
<BUTTON onclick="m1.start();">Start</BUTTON>

Notes

Remarks

The default width of the MARQUEE element is equal to the width of its parent element. When a MARQUEE is in a TD that does not specify a width, you should explicitly set the width of MARQUEE. If neither the MARQUEE nor the TD has a width specified, the marquee is collapsed to a 1-pixel width. To create a vertically scrolling marquee, set its scrollLeft property to 0. To create a horizontally scrolling marquee, set its scrollTop property to 0, overriding any script setting. The scrollLeft and scrollTop properties are read-only while the marquee is scrolling. When not scrolling, scrollLeft is read/write for a marquee set to scroll horizontally and scrollTop is read/write for a marquee set to scroll vertically.

Standards information

There are no standards that apply here.

HTML information

{

Attribution

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]