index property

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

Syntax

JScript
index = object.index

 

Property values

Type: Integer

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

Examples

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>

See also

playItem
Introduction to HTML+TIME

 

 

Show: