title property
Gets the title of the media file.
Syntax
JScript |
---|
|
Property values
Type: String
the title of the media file.
Remarks
If the media title information is not available, an empty string ("") is returned.
When used with an Advanced Stream Redirector (ASX) file, this property gets the title of the current active entry—not the title of the ASX file.
Examples
This examples uses the title property to get the title of the media file.
Code example: http://samples.msdn.microsoft.com/workshop/samples/author/behaviors/title.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML XMLNS:t="urn:schemas-microsoft-com:time">
<HEAD>
<TITLE>title Property</TITLE>
<?IMPORT namespace="t" implementation="#default#time2">
<STYLE>
.time{ behavior: url(#default#time2);}
</STYLE>
</HEAD>
<BODY>
<t:video id="m1" style="position:absolute;top:50px;height:100px"
src="/workshop/samples/author/behaviors/media/shuttle3.wmv" />
<span style="position:absolute;top:165px;" id="title1">Title:</span>
<P style="position:absolute;top:190px;">
<BUTTON id="b1" onclick="title1.innerText=m1.title">Click here for title</BUTTON>
</P>
</BODY>
</HTML>