Home > Abakada: Back to Basics > Language References > HTML Element Attributes > LOOP Attribute
Sets or retrieves how many times a MARQUEE will loop when activated.
Inline |
<marquee loop = iLoop...> |
Script |
object.loop = iLoop ] |
iLoop |
Positive integer value specifying the number of loops or -1, which causes the MARQUEE to infinitely loop. |
The property is read/write with a default value of -1.
If applied to the MARQUEE object, the property specifies how many times the content should loop. If set to -1, it will loop continuously.
Following are descriptions of how loop works for some boundary cases.
<BGSOUND src="chimes.wav"> |
loops one time |
<BGSOUND src="chimes.wav" loop> |
loops one time |
<BGSOUND src="chimes.wav" loop=> |
loops zero times |
<BGSOUND src="chimes.wav" loop=-1> |
loops infinitely |
<BGSOUND src="chimes.wav" loop=0> |
invalid value error |
Internet Explorer® provides an additional loopdelay attribute for video clips, to set a delay between playbacks. This attribute specifies the delay time in milliseconds.
<img border="0" dynsrc="sample.avi" start="fileopen"
loop="-1" loopdelay="20" controls
width="200" height="200">
BGSOUND, IMG, MARQUEE