HBCMS更多的中文手册参考:

length参数属性

DHTML中文手册

Retrieves the number of objects in a collection.

dhtml语法

[ iCollObjs = ] object.length

DHTML可能的值

iCollObjsInteger that receives the number of objects in the collection.

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

DHTML代码范例

This example uses the length property to retrieve the number of objects in a collection.

<?IMPORT namespace="t" implementation="#default#time2">
<STYLE>
.time{ behavior: url(#default#time2);}
</STYLE>
<SCRIPT>
function getLength(){
alert('Number of objects: ' + m1.playList.length);
}
</SCRIPT>
<BODY>
<t:media id="m1" begin="0;" src="/test/someCollection.asx"/>
<BUTTON onclick="getLength();">Get number of objects</BUTTON>
</BODY>
</HTML>

是否符合公共标准

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

Applies To

activeElements, timeAll, timeChildren, playList

更多语法参考

Introduction to HTML+TIME