HBCMS更多的中文手册参考:

parentTimeToDocumentTime Method

DHTML中文手册

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

dhtml语法

documentTime = object.parentTimeToDocumentTime(parentTime)

Parameters

parentTime Required. Integer that specifies a point on the element's parent timeline.

Return Value

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

DHTML代码范例

This example uses the parentTimeToDocumentTime method to retrieve the value of the point in the document timeline corresponding to parentTime. To see the element's point in the document timeline, click its parentTimeToDocumentTime button.

<HTML XMLNS:t="urn:schemas-microsoft-com:time">
<HEAD>
<TITLE>parentTimeToDocumentTime Method</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">
<!-- Time Element, t:par, to be tested -->
<t:par id="t1" class="time" repeatCount="3">
<DIV id="div1" class="time" begin="2s" dur="2s"
style="color:blue;font-size:0.5in">Hello World</DIV>
</t:par>
<SPAN id="s1" style="position:relative;top:20px;">
parentTimeToDocumentTime:</SPAN>
<BR>
<!-- Time Method, parentTimeToDocumentTime(), to be tested -->
<!-- Values should be 3,7,& 11 depending on the time in which the button is clicked.-->
<BUTTON id="b1" onclick="s1.innerText='parentTimeToDocumentTime: ' +
div1.parentTimeToDocumentTime(3);">Get parentTimeToDocumentTime(3)</BUTTON>
</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, parenttimebegin, parentTimeEnd