isActive Property | Internet Development Index |
Retrieves a value that indicates whether the element is currently active on the timeline.
Syntax
[ bActive = ] currTimeState.isActivePossible Values
bActive Boolean that receives one of the following values.
true Element is active on the timeline. false Element is not active on the timeline. The property is read-only. The property has no default value.
Example
This example uses the isActive property to retrieve a value that indicates whether the media element is active on the timeline.
<HTML XMLNS:t="urn:schemas-microsoft-com:time"> <HEAD> <TITLE>isActive Property</TITLE> <?IMPORT namespace="t" implementation="#default#time2"> <STYLE> .time{ behavior: url(#default#time2);} </STYLE> <SCRIPT LANGUAGE="JavaScript"> function checkIsActive(){ isActive1.innerText='isActive: ' + m1.currTimeState.isActive; if(m1.currTimeState.isActive){ b0.disabled=true; b1.disabled=false; }else{ b0.disabled=false; b1.disabled=true; } } </SCRIPT> </HEAD> <BODY TOPMARGIN=0 LEFTMARGIN=0 BGPROPERTIES="FIXED" BGCOLOR="#FFFFFF" LINK="#000000" VLINK="#808080" ALINK="#000000"> <t:video id="m1" begin="0;indefinite;" src="../../common/samples/author/behaviors/media/shuttle3.wmv" onend="checkIsActive();" onbegin="checkIsActive();" fill="remove"/> <BR><BR> <SPAN id="isActive1">isActive:</SPAN> <BR> <BUTTON id="b0" onclick="m1.beginElement();">Restart</BUTTON> <BUTTON id="b1" onclick="m1.endElement();">Stop</BUTTON> </BODY> </HTML>
Standards Information
This property is a Microsoft extension to Synchronized Multimedia Integration Language (SMIL)
.
Applies To
currTimeState
See Also
Introduction to HTML+TIME, activeElements, isOn, isPaused, state, stateString