Compartir a través de


onresume Event

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

Fires when an element's timeline resumes from a paused state.

Syntax

Inline HTML <ELEMENT onresume = "handler(event);" >
Event Property object.onresume = handler;
attachEvent object.attachEvent( "onresume", handler);
Named script <SCRIPT FOR = object EVENT = onresume>

Event Information

Bubbles No
Cancels No
To invoke Call the resetElement method.
Default action Calls the associated event handler.

Event Object Properties

Although event handlers in the DHTML Object Model do not receive parameters directly, a handler can query the event object for the following event properties.

Available Properties

srcElement Gets or sets the object that fired the event.
type Gets or sets the event name from the event object.

Refer to the specific event object for additional event properties.

Remarks

The onresume event fires on every element that becomes active when the timeline resumes, including the body element.

Example

In this example, the onresume event fires on the paused element when it resumes its duration.

<HTML XMLNS:t="urn:schemas-microsoft-com:time">
<HEAD>
<TITLE>onresume Event</TITLE>
<?IMPORT namespace="t" implementation="#default#time2">

<STYLE>
    .time{ behavior: url(#default#time2);}
</STYLE>
</HEAD>

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

<!-- Total duration of the t:excl time container is 20 seconds. -->
<t:excl id="tp1">
    <t:priorityclass peers="pause">
        <SPAN id="d1" class="time" begin="0s" dur="15s"
            onresume="alert('Paragraph 1 resuming duration.');">
            <H3>Paragraph 1</H3>
            <P>Paragraph 1 is displayed until it is interrupted by
            the next element (at 5 seconds). Paragraph 1 then resumes its
            duration.</P>
        </SPAN>
        <SPAN id="d2" class="time" begin="5s" dur="5s"
            onend="d2.style.visibility='hidden';">
            <H3>Paragraph 2</H3>
            <P>Paragraph 2 is displayed for 5 seconds; Paragraph
            1 then resumes its duration.</P>
        </SPAN>
    </t:priorityclass>
</t:excl>
</BODY>
</HTML>

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

Applies To

t:TRANSITIONFILTER, t:ANIMATE, t:ANIMATECOLOR, t:ANIMATEMOTION, t:ANIMATION, t:AUDIO, t:IMG, t:MEDIA, t:PAR, t:REF, t:SEQ, t:SET, time2, t:VIDEO

See Also

onpause, Introduction to HTML+TIME