Other HTML+TIME Elements
This topic documents a feature of HTML+TIME 2.0, which is obsolete as of Windows Internet Explorer 9.
This section contains reference information on additional features of the object model exposed by the time2 behavior, including content control elements, system test attributes, timing attributes and properties, and several overviews on Introduction to HTML+TIME functionality.
Overviews
About Content Selection: System Test Attributes and t:SWITCHHTML+TIME 2.0 provides authors with the option to display different elements based on system settings.
Animating with keyTimes and keySplinesUsing the keyTimes and keySplines attributes, you can divide an animation element's simple duration into multiple segments, speed up or slow down the animation at multiple rates during a single duration, and specify values for the animation to reach at particular points in its duration.
Getting Started with HTML+TIMEHTML+TIME (Timed Interactive Multimedia Extensions) makes it fast and easy to support timed, animated, and multimedia content on your pages.
Seeking With HTML+TIMEIn HTML+TIME various types of media, animation, and other time elements can be played over a period of time. It is often desirable to be able to jump to any point on this time line. This process of jumping to different points on a time element's time line is called seeking.
Using HTML+TIME with DirectMusicThis article briefly discusses some of the ways you can use HTML+TIME to add flexibility and control to Microsoft DirectMusic content on the Web.
Using the HTML+TIME Document Object Model (DOM)All HTML+TIME objects are accessible through script at run time. This article introduces you to the HTML+TIME objects, methods, events, and properties available to your Web pages.
Tutorials
Incorporate the time2 BehaviorThis tutorial explains how to incorporate the time2 behavior in your Web pages so you can begin using timelines, multimedia, and animation with HTML elements.
Elements and Objects
currTimeState
Contains information about an HTML+TIME timeline.
switch
Enables you to provide several choices and display content depending on which choice is true on the user's computer.
Attributes and Properties
accelerate
Sets or gets a value that applies an acceleration to an element timeline.
activeDur
Gets the total duration of the timeline.
activeTime
Gets the current point in time along the total active timeline, including repeats and time spent in reverse mode.
activeTrack
Sets the active track or gets the active playItem object in the playList collection.
autoReverse
Sets or gets whether the timeline on an element begins playing in reverse immediately after it completes in the forward direction.
begin
Sets or gets the delay time before the timeline begins playing on the element.
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.
fill
Sets or gets the action taken by an element if the element timeline ends before the timeline on its parent element ends.
higher
Controls how elements with higher priority interrupt child elements of a priorityClass element.
Controls how elements with higher priority interrupt child elements of a priorityClass element.isActiveGets a value that indicates whether the element is currently active on the timeline.
isOnGets a value that specifies whether the element is active or holding on the timeline in its current state.
isPausedGets a value that specifies whether the element is paused on the timeline.
lowerControls how elements that are defined with lower priority interrupt child elements of a priorityClass element.
parentTimeBeginGets the begin time of the current element as an offset from the begin time of the parent element.
parentTimeEndGets the end time of the current element as an offset from the begin time of the parent element.
peersControls how child elements of a priorityClass element interrupt one another.
progressGets the current progress of the element timeline.
repeatCountGets the current iteration in the repetition loop.
repeatCountSets or gets the number of times an element timeline repeats.
repeatDurSets or gets the number of seconds that an element timeline repeats.
Sets or gets the number of seconds that an element timeline repeats.restartSets or gets the conditions under which an element can be restarted on a timeline.
segmentDurGets the duration of an element on a timeline in seconds, including autoReverse.
segmentTimeGets the current point in time along a segment of time.
simpleDurGets the duration of a repeat iteration.
simpleTimeGets an object's current point along its timeline from zero to its dur value.
speedSets or gets the playback speed of an element relative to its parent time container.
speedGets the playback speed of an element at run time, which includes the cascading effect of the speed set for the parent time container.
stateGets the current state of the element timeline.
stateStringGets the current state of the element timeline.
syncBehaviorSets or gets a value that indicates the synchronization rules for the element timeline.
syncMasterSets or gets whether the time container must synchronize playback to this element.
syncToleranceSets or gets the time variance that is allowed on a timeline with locked synchronization.
systemBitrateGets the approximate bandwidth available to the system in bits-per-second.
systemCaptionsIndicates whether to display a text equivalent of the audio portion of the presentation.
systemLanguageIndicates whether a given language is selected in a user's system preferences.
systemOverdubOrSubtitleSpecifies whether overdubs or subtitles render during a presentation.
timeActionSets or gets the action that is taken on the element while the timeline is active.
timeContainerSets or gets the type of timeline associated with an element.
timeParentGets the parent time container element of the current element.
volumeSets or gets the volume of the media file.
Methods
activeTimeToParentTime
Converts a value in the element's active timeline to the corresponding point in the parent timeline.
activeTimeToSegmentTime
Converts a value in the element's active timeline to the corresponding point in the segment timeline.
beginElement
Starts the element on the timeline.
beginElementAt
Starts an element's timeline at the specified time.
documentTimeToParentTime
Converts a value in the document timeline to the corresponding point in the element's parent timeline.
endElement
Stops the element on the timeline.
endElementAt
Ends an element's timeline at the specified time.
parentTimeToActiveTime
Converts a value in the parent timeline to the corresponding point in the element's active timeline.
parentTimeToDocumentTime
Converts a value in the element's parent timeline to the corresponding point in the document timeline.
pauseElement
Stops playing an element's timeline at the current point.
resetElement
Removes any changes made to the element and returns the element to its original state.
resumeElement
Restarts the element's timeline from a paused state.
seekActiveTime
Locates a specified point on the element's active timeline and begins playing from that point.
Locates a specified point on the element's active timeline and begins playing from that point.seekToLocates a specified point on the element's segment timeline, including repetitions, and begins playing from that point.
seekToFrameLocates a specified frame in the object.
segmentTimeToActiveTimeConverts a value in the element's segment timeline to the corresponding point in the element's active timeline.
segmentTimeToSimpleTimeConverts a value in the element's segment timeline to the corresponding point in the element's simple timeline.
simpleTimeToSegmentTimeConverts a value in the element's simple timeline to the corresponding point in the element's segment timeline.
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 finish loading.
Fires when the element's associated media finish loading.onmediaerrorFires when an element's media file causes any error.
onoutofsyncFires when the element loses synchronization with its associated timeline.
onpauseFires when the timeline on an element pauses.
onrepeatFires when the timeline repeats on an element, beginning with the second iteration.
onresetFires when the timeline reaches the value of the BEGIN attribute or when the resetElement method is called on the element.
onresumeFires when an element's timeline resumes from a paused state.
onreverseFires when the timeline on an element begins to play backward.
onseekFires whenever a seek operation is performed on the element.
onsyncrestoredFires when synchronization is resumed between the element and its associated timeline.
ontimeerrorFires whenever a time-specific error occurs, usually as a result of setting a property to an invalid value.