HBCMS更多的中文手册参考:

parentTimeToActiveTime Method

DHTML中文手册

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

dhtml语法

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.

DHTML代码范例

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.

是否符合公共标准

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

更多语法参考

introduction to html+time, activetime, parenttimebegin, parentTimeEnd