prevElement Method (t:SEQ)

HTML (DHTML)

prevElement Method

Internet Development Index

Resets the timeline so that the previous element in the sequence begins playing.

Syntax

t:SEQ.prevElement()

Return Value

No return value.

Remarks

When this method is invoked on the first element in a sequence, the local timeline on that element resets to 0. This method is valid only while the sequence is active.

Example

<HTML XMLNS:t="urn:schemas-microsoft-com:time">
<HEAD>
<TITLE>nextElement and prevElement Methods</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">
<t:seq id="ts1" id="parent" begin="indefinite;">
<DIV id="div1" class="time"
style="position:relative;top:15px;left:25px;width:100px;height:100px;
background-color:yellow;" dur="10"></DIV>
<DIV id="div1" class="time"
style="position:relative;top:15px;left:25px;width:100px;height:100px;
background-color:blue;" dur="10"></DIV>
<DIV id="div1" class="time"
style="position:relative;top:15px;left:25px;width:100px;height:100px;
background-color:green;" dur="10"></DIV>
<DIV id="div1" class="time"
style="position:relative;top:15px;left:25px;width:100px;height:100px;
background-color:red;" dur="10"></DIV>
</t:seq>
<BR><BR>
<BUTTON id="b0" onclick="ts1.beginElement();" style="font-weight:bold;">
Start</BUTTON>
<BUTTON id="b1" onclick="ts1.nextElement();">Next Element</BUTTON>
<BUTTON id="b2" onclick="ts1.prevElement();">Previous Element</BUTTON>
<BUTTON id="b3" onclick="ts1.endElement();">Stop</BUTTON>
</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 method is a Microsoft extension to Synchronized Multimedia Integration Language (SMIL) Non-Microsoft link.

Applies To

t:SEQ

See Also

Introduction to HTML+TIME, nextElement, isActive