index Property

Internet Development Index

Retrieves the index value of the playItem object in the playList collection.

Syntax

[ iIndex = ] playItem.index

Possible Values

iIndexInteger that receives the index value of the playItem object in the playList collection.

The property is read-only. The property has no default value.

Example

This example uses the index property to retrieve the index value of the playItem object in the playList collection.

<HTML XMLNS:t="urn:schemas-microsoft-com:time">
<?IMPORT namespace="t" implementation="#default#time2">
<STYLE>
.time{ behavior: url(#default#time2);}
</STYLE>
<SCRIPT>
function getIndex(){
alert('Index value: ' + m1.playList.activeTrack.index);
}
</SCRIPT>
<BODY>
<t:media id="m1" begin="0;" src="/test/someCollection.asx"/>
<BUTTON onclick="getIndex();">Get index value</BUTTON>
</BODY>
</HTML>

Standards Information

This property is a Microsoft extension to Synchronized Multimedia Integration Language (SMIL) Non-Microsoft link.

Applies To

playItem

See Also

Introduction to HTML+TIME