次の方法で共有


rating Property

This topic documents a feature of HTML+TIME 2.0, which is obsolete as of Windows Internet Explorer 9.

Gets the rating of the media file.

Syntax

HTML N/A
Scripting [ sRating = ] object.rating

Possible Values

sRating String 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.

Example

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="/workshop/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>

Code example: http://samples.msdn.microsoft.com/workshop/samples/author/behaviors/rating.htm

Applies To

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

See Also

Introduction to HTML+TIME