Compartilhar via


parentTimeToActiveTime Method

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

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. An Integer that specifies a point in the parent timeline.

Return Value

An 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 the element's 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>

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

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