parentTimeToActiveTime Method

Internet Development Index

Converts a value in the parent timeline to the corresponding point in the element's active timeline.

Syntax

activeTime = object.parentTimeToActiveTime(parentTime)

Parameters

parentTime Required. Integer that specifies a point in the parent timeline.

Return Value

Integer that specifies the point in the active timeline that corresponds to parentTime.

Example

This example uses the parentTimeToActiveTime method to compare the value of the parent's timeline to the corresponding point in the active timeline. To see the element's point in the active timeline, click its parentTimeToActiveTime button.

<HTML>
<XML:NAMESPACE PREFIX="t"/>
<HEAD>
<TITLE>parentTimeToActiveTime Method</TITLE>
<?IMPORT namespace="t" implementation="#default#time2">
<STYLE>
.time{behavior: url(#default#time2);}
</STYLE>
</HEAD>
<BODY>
<t:excl id="t1" repeatCount="3">
<DIV id="div1" class="time" style="color:blue;font-size:1in" begin="1s"
dur="5s">Hello World!</DIV>
</t:excl>
<!-- Values allowed for the parent timeline are 1, 2, 3, 4, 5. -->
<!-- This example uses a value of 3. -->
<BR>
<BUTTON onclick="alert('Point in active timeline: ' +
div1.parentTimeToActiveTime(3));">parentTimeToActiveTime(3)
</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:TRANSITIONFILTER, t:ANIMATE, t:ANIMATECOLOR, t:ANIMATEMOTION, t:ANIMATION, t:AUDIO, t:EXCL, t:IMG, t:MEDIA, t:PAR, t:REF, t:SEQ, t:SET, time2, t:VIDEO

See Also

Introduction to HTML+TIME, activeTime, parentTimeBegin, parentTimeEnd