isActive参数属性 | DHTML中文手册 |
Retrieves a value that indicates whether the element is currently active on the timeline.
dhtml语法
[ bActive = ] currTimeState.isActive
DHTML可能的值
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.
DHTML代码范例
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>
是否符合公共标准
This property is a Microsoft extension to Synchronized Multimedia Integration Language (SMIL) .
Applies To
currTimeState
更多语法参考
introduction to html+time, activeelements, ison, ispaused, state, stateString