最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

LOOP Attribute | loop Property

Internet Development Index

Sets or retrieves the number of times a sound or video clip will loop when activated.

Syntax

HTML<ELEMENT LOOP = iLoop... >
Scriptingobject.loop [ = iLoop ]

Possible Values

iLoopVariant that specifies or receives one of the following values.
-1Loops infinitely.
0Loops one time.
countNumber of times to loop.

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

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.

Remarks

To restart a sound or video clip after changing its loop property, set the src property or dynsrc property to itself. For example:

oBGSound.src = oBGSound.src

In Microsoft® Internet Explorer 4.0, when you restart a video by changing its loop property, the video opens and plays in a new window.

The following are descriptions of how the loop property works for some boundary cases.
<BGSOUND src="file:///c:\win95\system\msremind.wav">Loops one time
<BGSOUND src="file:///c:\win95\system\msremind.wav" LOOP>Loops one time.
<BGSOUND src="file:///c:\win95\system\msremind.wav" LOOP=>Loops one time.
<BGSOUND src="file:///c:\win95\system\msremind.wav" LOOP=0>Loops one time.
<BGSOUND src="file:///c:\win95\system\msremind.wav" LOOP=-1>Loops infinitely.

Example

This example uses the loop property and the src property to change the number of times a background sound loops.

<SCRIPT>
function loopOnce() {
oBGSound.loop = 1;
oBGSound.src = oBGSound.src; // reload sound
}
function loopContinuously() {
oBGSound.loop = -1;
oBGSound.src = oBGSound.src; // reload sound
}
</SCRIPT>
:
<BGSOUND id="oBGSound" src="sound.wav">
<BUTTON onclick="loopOnce()">Loop Sound Once</BUTTON>
<BUTTON onclick="loopContinuously()">Loop Sound Continuously</BUTTON>
This feature requires Microsoft® Internet Explorer 4.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Standards Information

There is no public standard that applies to this property.

Applies To

BGSOUND, IMG, INPUT, INPUT type=image
新化县| 策勒县| 噶尔县| 枣庄市| 涪陵区| 泰兴市| 梁平县| 临清市| 于都县| 屏东县| 剑川县| 石泉县| 云龙县| 二连浩特市| 尤溪县| 囊谦县| 凭祥市| 西贡区| 金寨县| 武陟县| 噶尔县| 科尔| 永州市| 昌黎县| 通辽市| 瓦房店市| 和政县| 桐庐县| 昆山市| 城市| 宝兴县| 井研县| 连平县| 泸州市| 遵义县| 于都县| 南和县| 英德市| 集贤县| 隆子县| 汝州市|