asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Element Attributes > LOOP Attribute

LOOP Attribute | loop Property


Sets or retrieves how many times a MARQUEE will loop when activated.

Syntax

Inline <marquee loop = iLoop...>
Script object.loop = iLoop ]

Possible Values

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.

Remarks

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">
Applies To

BGSOUND, IMG, MARQUEE



Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note