Partager via


HTML+TIME 1.0 Reference

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.

This section contains reference information for the object model exposed by the time behavior.

Behaviors

audio

Defines a timed audio element in an HTML document.

img

Defines a timed image element in an HTML document.

media

Defines a generic, timed media element in an HTML document.

par

Defines a new timeline container in an HTML document for independently timed elements.

seq

Defines a new timeline container in an HTML document for sequentially timed elements.

time

Provides an active timeline for an HTML element.

video

Defines a timed video element in an HTML document.

Events

onbegin

Fires when the timeline starts on an element.

onend

Fires when the timeline stops on an element.

onmediacomplete

Fires when the element's associated media is finished loading.

onmedialoadfailed

Fires when an element's media file fails to load for any reason.

onmediaslip

Fires when an element's media file fails to keep up with the defined timeline.

onpause

Fires when the timeline on an element pauses.

onrepeat

Fires when the timeline repeats on an element, beginning with the second iteration.

onresume

Fires when an element's timeline resumes from a paused state.

onresync

Fires when the element's associated media synchronization is interrupted.

onreverse

Fires when the timeline on an element begins to play backward.

onscriptcommand

Fires when the Microsoft Windows Media Player control receives a synchronized command or URL.

Methods

beginElement

Starts the element on the timeline.

endElement

Stops the element on the timeline.

pause

Pauses the timeline on the HTML document.

resume

Resumes a paused timeline on the HTML document.

Attributes/Properties

accelerate

Sets or gets a value that applies an acceleration to the element's local timeline.

autoReverse

Sets or gets whether the timeline on an element immediately begins playing in reverse after completing in the forward direction.

begin

Sets or gets the delay time before the timeline begins playing on the element.

beginAfter

Sets or gets a value indicating that the timeline of an element starts when the referenced element ends.

beginEvent

Sets or gets a value that starts the timeline of an element when the referenced event occurs.

beginWith

Sets or gets a value that starts an element timeline at the same time as the referenced element.

clipBegin

Sets or gets the beginning point of a sub-clip of a continuous media object.

clipEnd

Sets or gets the end point of a sub-clip of a continuous media object.

clockSource

Sets or gets whether all the elements within the local time scope are synchronized with the timeline on this element.

currTime

Gets a value indicating the current time on the simple duration as defined by the element's t:DUR attribute or the t:END attribute.

decelerate

Sets or gets a value that applies a deceleration to the end of a simple duration.

dur

Sets or gets a value indicating the amount of time the element remains active or displayed.

end

Sets or gets a value indicating the end time for the element, or the end of the simple duration when the element is set to repeat.

endEvent

Sets or gets a value indicating that the timeline of an element ends immediately when the referenced event occurs, regardless of the element's repeat count or repeatDur property.

endHold

Sets or gets whether an element remains active if its timeline ends before the timeline on its parent element ends.

eventRestart

Sets or gets whether the element should restart if a beginEvent call occurs while the local timeline is already running.

img

Sets or gets the URL of an alternate image to display if the MIME type is not supported on the user's computer.

localTime

Gets a value indicating the current time along the local duration, as defined by the element's t:REPEAT atribute or t:REPEATDUR attribute.

onOffBehavior

This property is deprecated. Gets an object that indicates whether the specified Microsoft DirectAnimation behavior is running.

player

Sets or gets the object used to render the media associated with this element.

playerObject

Gets the object that plays media files.

progressBehavior

Gets an object indicating the progress of the specified DirectAnimation behavior.

repeat

Sets or gets the number of times an element timeline repeats.

repeatDur

Sets or gets the number of seconds an element timeline repeats.

src

Sets or gets the source URL of the media.

syncBehavior

Sets or gets the synchronization rules for the element timeline.

syncTolerance

Gets the time variance allowed on a timeline with locked synchronization.

timeAction

Sets or gets the action that is taken on the element while the timeline is active.

timeline

Sets or gets the type of timeline associated with an HTML element.

timelineBehavior

Gets a DirectAnimation number object containing the timeline behavior associated with the specified object.

timeStartRule

Sets or gets the point at which the document timeline begins.

type

Sets or gets the MIME type of the media object referenced by the t:SRC attribute.