beginElement Method (deprecated)

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.



Return Value

No return value.


This method is deprecated. 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 child elements are notified and aligned correctly to the local timeline.


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

  .time  { behavior: url(#default#time);}
<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 CLASS="time" STYLE="Color:Green; font-size:20pt;" 
        t:TIMEACTION="display" t:DUR="1">4...
    <SPAN CLASS="time" STYLE="Color:Blue; font-size:20pt;" 
        t:TIMEACTION="display" t:DUR="1">3...
    <SPAN CLASS="time" STYLE="Color:Orange; font-size:20pt;" 
        t:TIMEACTION="display" t:DUR="1">2...
    <SPAN CLASS="time" STYLE="Color:Purple; font-size:20pt;" 
        t:TIMEACTION="display" t:DUR="1">1...
    <IMG CLASS="time" t:DUR="indefinite" 
    SRC="/workshop/graphics/sun.gif" />
<BUTTON ID="btn" onclick="sequence.beginElement();">
    Restart Timeline

Code example:

Applies To

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

See Also

endElement, Introduction to HTML+TIME