Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
HTML and CSS
Properties
 loop Property
LOOP Attribute | loop Property

Sets or retrieves the number of times a marquee will play.

Syntax

HTML<ELEMENT LOOP = iLoop... >
Scripting[ iLoop = ] object.loop

Possible Values

iLoopInteger that specifies or receives one of the following values.
0, -1
Loops infinitely.
count
Number of times to loop.

The property is read/write. The property has a default value of -1.

DHTML expressions can be used in place of the preceding value(s). As of Internet Explorer 8, expressions are not supported in IE8 mode. For more information, see About Dynamic Properties.

Remarks

In each of the following boundary cases, the marquee loops infinitely.

<MARQUEE SCROLLAMOUNT=30 LOOP>This is some scrolling text.</MARQUEE>Loops infinitely.
<MARQUEE SCROLLAMOUNT=30 LOOP=0>This is some scrolling text.</MARQUEE>Loops infinitely.
<MARQUEE SCROLLAMOUNT=30 LOOP=>This is some scrolling text.</MARQUEE>Loops infinitely.

If you set the loop property to null or 0 in script, a scripting error occurs.

Standards Information

There is no public standard that applies to this property.

Applies To

MARQUEE, HTMLMarqueeElement Constructor
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker