HBCMS更多的中文手册参考:

beginElement Method?deprecated)

DHTML中文手册

This page documents a feature of HTML+TIME 1.0, which was released in Microsoft?Internet Explorer 5. We recommend that you migrate your content to the latest version of HTML+TIME, which implements the SMIL 2.0 Working Draft. See the introduction to html+time overview for more information.

starts the element on the timeline.

dhtml语法

object.beginelement()

return value

no return value.

remarks

this method applies the same action as if the element's begin time is reached on the local timeline. when the beginelement method is called, the element begins. all time children elements are notified and aligned correctly to the local timeline.

DHTML代码范例

This example displays an image when the countdown reaches 0. Click the Restart Timeline button to restart the timeline with the beginElement method.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<XML:NAMESPACE PREFIX="t"/>
<STYLE>
.time  { behavior: url(#default#time);}
</STYLE>
</HEAD>
<BODY BGCOLOR="white">
<t:SEQ ID="sequence" CLASS="time">
<SPAN CLASS="time" STYLE="Color:Red; font-size:20pt;"
t:TIMEACTION="display" t:DUR="1">5...
</SPAN>
<SPAN CLASS="time" STYLE="Color:Green; font-size:20pt;"
t:TIMEACTION="display" t:DUR="1">4...
</SPAN>
<SPAN CLASS="time" STYLE="Color:Blue; font-size:20pt;"
t:TIMEACTION="display" t:DUR="1">3...
</SPAN>
<SPAN CLASS="time" STYLE="Color:Orange; font-size:20pt;"
t:TIMEACTION="display" t:DUR="1">2...
</SPAN>
<SPAN CLASS="time" STYLE="Color:Purple; font-size:20pt;"
t:TIMEACTION="display" t:DUR="1">1...
</SPAN><BR>
<IMG CLASS="time" t:DUR="indefinite"
SRC="../../common/sun.gif" />
</t:SEQ><BR>
<BUTTON ID="btn" onclick="sequence.beginElement();">
Restart Timeline
</BUTTON>
<BR><BR>
</BODY>
</HTML>
This feature requires Microsoft?Internet Explorer 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 HTML+TIME (Timed Interactive Multimedia Extensions) Non-Microsoft link.

Applies To

t:AUDIO, t:IMG, t:MEDIA, t:PAR, t:SEQ, time, t:VIDEO

更多语法参考

endelement, Introduction to HTML+TIME