Fires when an element's timeline resumes from a paused state.
Syntax
Inline HTML | <ELEMENT onresume = "handler" ... >
| All platforms |
---|
Event property | object.onresume = handler | JScript only |
---|
object.onresume = GetRef("handler") | Visual Basic Scripting Edition (VBScript) 5.0 or later only |
Named script |
<SCRIPT FOR =
object EVENT = onresume>
| Internet Explorer only |
---|
Event Information
Bubbles | No |
---|
Cancels | No |
---|
To invoke |
Call the resetElement method. |
---|
Default action |
Calls the associated event handler. |
---|
Available Properties
Available 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>
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 event is a Microsoft extension to
Synchronized Multimedia Integration Language (SMIL)
.
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