HBCMS更多的中文手册参考:

parentTimeBegin参数属性

DHTML中文手册

Retrieves the current element's begin time as an offset from the parent element's begin time.

dhtml语法

[ iTime = ] currTimeState.parentTimeBegin

DHTML可能的值

iTimeInteger that receives the current element's begin time, in seconds.

The property is read-only. The property has no default value.

DHTML代码范例

This example uses the parentTimeBegin property to retrieve the element's begin time.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML XMLNS:t="urn:schemas-microsoft-com:time">
<HEAD>
<TITLE>parentTimeBegin Property</TITLE>
<SCRIPT>
function getValue(){
parentBegin.innerText += div1.currTimeState.parentTimeBegin + ' second(s)';
}
</SCRIPT>
<STYLE>
.time { behavior: url(#default#time2) }
</STYLE>
<?IMPORT namespace="t" implementation="#default#time2">
</HEAD>
<BODY TOPMARGIN=0 LEFTMARGIN=0 BGPROPERTIES="fixed" BGCOLOR="#FFFFFF"
LINK="#000000" VLINK="#808080" ALINK="#000000">
<B>Document timer:</B>
<SPAN id="Timer1" class="time" dur=".01" repeatCount="indefinite" fill="hold"
onrepeat="innerText=parseInt(document.body.currTimeState.activeTime);">0</SPAN>
<BR>
<B>Time container timer:</B>
<SPAN id="Timer2" class="time" dur=".01" repeatCount="indefinite" fill="hold"
onrepeat="innerText=parseInt(t1.currTimeState.activeTime);">0</SPAN>
<BR><BR>
<t:excl ID="t1" repeatDur="indefinite" onbegin="getValue();">
<DIV ID="div1" CLASS="time" BEGIN="1" DUR="5"
style="position:relative;top:5px;left:0px;width:550px;height:100px;
background-color:yellow;text-align:center;font-size:large">
This div begins at 1 second and has a duration of 5 seconds. The parent
element's repeatDur property is set to "indefinite".
</DIV>
</t:excl>
<BR>
<B>parentTimeBegin</B><SPAN id="parentBegin"> - Element's begin time as an offset
from parent element's begin time: </SPAN><BR>
</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 property is a Microsoft extension to Synchronized Multimedia Integration Language (SMIL) Non-Microsoft link.

Applies To

currTimeState

更多语法参考

Introduction to HTML+TIME