最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

activeTrack Property

Internet Development Index

Sets or retrieves the track, or playItem object, that is currently active in the playList collection.

Syntax

playList.activeTrack [ = oPlayItem ]

Possible Values

oPlayItem Object that specifies or receives the name of the track, or playItem object, that is currently active in the playList collection.

The property is read/write. The property has no default value.

Remarks

Using this property to set the active track in the playList causes that track to begin playing immediately.

If a script accesses this property on a playList that is not currently active, an error is returned. To prevent this error, the script should check the element's isActive property before attempting to read the activeTrack.

Example

This example demonstrates how to retrieve a property of the currently active track using the activeTrack property.

<HTML XMLNS:t="urn:schemas-microsoft-com:time">
<HEAD>
<?IMPORT namespace="t" implementation="#default#time2">
<TITLE>HTML+TIME playList Example</TITLE>
<LINK REL="stylesheet" HREF="../../common/samples/samples.css" TYPE="text/css">
<STYLE>
.time{ behavior: url(#default#time2);}
</STYLE>
<SCRIPT LANGUAGE="JScript">
function updateBtns()
{
if (oMedia.currTimeState.isActive) {
btnStart.disabled=true;
btnNext.disabled=false;
btnPrev.disabled=false;
btnStop.disabled=false;
}
else {
btnStart.disabled=false;
btnNext.disabled=true;
btnPrev.disabled=true;
btnStop.disabled=true;
}
}
function updateFields()
{
oTitle.innerText = "Title: " + oMedia.playList.activeTrack.title;
oAuthor.innerText = "Author: " + oMedia.playList.activeTrack.author;
oAbstract.innerText = "Abstract: " + oMedia.playList.activeTrack.abstract;
oCopyright.innerText = "Copyright: " + oMedia.playList.activeTrack.copyright;
oFilename.innerText = "Filename: " + oMedia.playList.activeTrack.src;
}
function clearFields()
{
oTitle.innerText = "Title: ";
oAuthor.innerText = "Author: ";
oAbstract.innerText = "Abstract: ";
oCopyright.innerText = "Copyright: ";
oFilename.innerText = "Filename: ";
}
</SCRIPT>
</HEAD>
<BODY onload="updateBtns()">
<t:MEDIA id="oMedia" src="short_3tracks.asx" begin="indefinite" timeAction="visibility"
onend="updateBtns();" ontrackchange="updateFields();"/>
<P>
<SPAN id="oTitle">Title:</SPAN><BR>
<SPAN id="oAuthor">Author:</SPAN><BR>
<SPAN id="oAbstract">Abstract:</SPAN><BR>
<SPAN id="oCopyright">Copyright:</SPAN><BR>
<SPAN id="oFilename">Filename:</SPAN><BR><BR>
<BUTTON id="btnStart"
onclick="oMedia.beginElement(); updateBtns();">
Start
</BUTTON>
<BUTTON id="btnPrev"
onclick="oMedia.playList.prevTrack();">
Previous Track
</BUTTON>
<BUTTON id="btnNext"
onclick="oMedia.playList.nextTrack();">
Next Track
</BUTTON>
<BUTTON id="btnStop"
onclick="oMedia.endElement(); clearFields();">
Stop
</BUTTON>
</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.

Standards Information

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

Applies To

playList

See Also

Introduction to HTML+TIME, nextTrack, prevTrack
顺义区| 顺昌县| 陵川县| 平潭县| 伊川县| 淄博市| 报价| 洪洞县| 北碚区| 施秉县| 兴仁县| 杭州市| 抚远县| 宿松县| 汕尾市| 宜城市| 古田县| 阳新县| 察雅县| 浠水县| 南昌市| 香河县| 锦州市| 潼关县| 海阳市| 株洲市| 崇礼县| 玛纳斯县| 翼城县| 茶陵县| 辽源市| 兴文县| 丰镇市| 青岛市| 会理县| 周口市| 巴彦淖尔市| 沽源县| 新昌县| 衡阳市| 永仁县|