HBCMS更多的中文手册参考:

rating参数属性

DHTML中文手册

Retrieves the rating of the media file.

dhtml语法

HTMLN/A
Scripting[ sRating = ] object.rating

DHTML可能的值

sRatingString that receives the rating of the media file.

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

Remarks

If the rating information is not available, an empty string ("") is returned.

DHTML代码范例

This example uses the rating property to retrieve the rating of the media file.

<HTML XMLNS:t="urn:schemas-microsoft-com:time">
<HEAD>
<TITLE>rating Property</TITLE>
<?IMPORT namespace="t" implementation="#default#time2">
<STYLE>
.time{ behavior: url(#default#time2);}
</STYLE>
</HEAD>
<BODY>
<t:video id="m1" style="height:100px"
src="../../common/samples/author/behaviors/media/shuttle3.wmv" />
<span id="rating1">Rating:</span>
<P style="position:absolute;top:190px;">
<BUTTON id="b1" onclick="rating1.innerText=m1.rating">Click here for rating</BUTTON>
</P>
</BODY>
</HTML>
This feature requires Microsoft?Internet Explorer 5.5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

是否符合公共标准

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

Applies To

playItem, t:ANIMATION, t:AUDIO, t:IMG, t:MEDIA, t:REF, t:VIDEO

更多语法参考

Introduction to HTML+TIME