HBCMS更多的中文手册参考:

index参数属性

DHTML中文手册

Retrieves the index value of the playitem object in the playlist collection.

dhtml语法

[ iindex = ] playitem.index

dhtml可能的值

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.

DHTML代码范例

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>

是否符合公共标准

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

Applies To

playItem

更多语法参考

Introduction to HTML+TIME