isPaused Property

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

Gets a value that specifies whether the element is paused on the timeline.

Syntax

[ bPaused = ] currTimeState.isPaused

Possible Values

bPaused Boolean that specifies one of the following values.
true
Element is currently paused on the timeline.
false
Default. Element is not paused on the timeline.

The property is read-only. The property has a default value of false.

Remarks

When an element is paused on the timeline, it is still in an active state. Elements in an active state can generate events and respond to events.

Example

This example uses the isPaused property to get a value that indicates whether the element is paused on the timeline.

<HTML XMLNS:t="urn:schemas-microsoft-com:time">
<HEAD>
<TITLE>isPaused Property</TITLE>
<?IMPORT namespace="t" implementation="#default#time2">
<SCRIPT>
function doPauseCheck(){
    (a1.currTimeState.isPaused == true ? s1.innerHTML='<B>isPaused: </B>True - Element is currently paused on timeline.' : s1.innerHTML='<B>isPaused: </B>False - Element is not paused on timeline.');
}
</SCRIPT>
<STYLE>
    .time{behavior: url(#default#time2);}
</STYLE>
</HEAD>

<BODY TOPMARGIN=0 LEFTMARGIN=0 BGPROPERTIES="FIXED" BGCOLOR="#FFFFFF"
    LINK="#000000" VLINK="#808080" ALINK="#000000">

<B>Moving DIV timer:</B>
<SPAN id="Timer3" class="time" dur="1" repeatCount="indefinite"
    onrepeat="innerText=parseInt(a1.currTimeState.activeTime);">0</SPAN>

<t:excl id="t1" begin="indefinite" dur="5" repeatCount="5"
    onbegin="doPauseCheck();" onend="s1.innerHTML='<B>isPaused:</B>';">
    <t:ANIMATEMOTION ID="a1" targetElement="div1" to="200,0" begin="0" dur="2"
        autoReverse="true" />
</t:excl>

<DIV ID="div1" CLASS="time" STYLE="position:relative;top:15px;left:25px;
    height:100px;width:100px;background-color:yellow;"></DIV>

<SPAN id="s1" style="position:relative;top:40px;"><B>isPaused:</B></SPAN>

<P style="position:relative;top:40px;">
<BUTTON id="b1" onclick="t1.beginElement();">Start</BUTTON>
<BUTTON id="b2" onclick="t1.pauseElement();doPauseCheck();">Pause</BUTTON>
<BUTTON id="b3" onclick="t1.resumeElement();doPauseCheck();">Resume</BUTTON>
<BUTTON id="b4" onclick="t1.endElement();s1.innerHTML='<B>isPaused:</B>';">Stop</BUTTON>
</P>
</BODY>
</HTML>

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

Applies To

currTimeState

See Also

Introduction to HTML+TIME, isActive, isOn, state, stateString