t:IMG Element | img Object
This topic documents a feature of HTML+TIME 2.0, which is obsolete as of Windows Internet Explorer 9.
Defines a timed image element in an HTML document.
The following table lists the members exposed by the img object.Attributes/Properties
Attribute Property Description abstract
Gets a description of the media file.
Sets or gets a value that applies an acceleration to an element timeline.
Gets the name of the media file author.
Sets or gets whether the timeline on an element begins playing in reverse immediately after it completes in the forward direction.
Sets or gets the delay time before the timeline begins playing on the element.
Sets when music should begin to play by using Microsoft DirectMusic.
Gets a value that indicates the current percent of buffering completed.
Gets a value that indicates whether the media file can be paused.
Gets a value that indicates whether the media file is capable of locating a specific time in the media's duration.
Sets or gets the beginning point of a sub-clip of a continuous media object.
Sets or Gets the end point of a sub-clip of a continuous media object.
Gets the copyright information associated with a media file.
Gets a value that indicates the currentFrame of the object.
Sets or gets a value that applies a deceleration to the end of a simple duration.
Gets a value that indicates the current number of bytes downloaded from streaming content.
Gets a value that indicates the current percent of download completed.
Gets a value that indicates the total size (in bytes) of the downloaded file.
Sets or gets a value indicating the amount of time the element remains active or displayed.
Gets a value that indicates the earliest time for efficient seeking.
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.
Sets or gets the action taken by an element if the element timeline ends before the timeline on its parent element ends.
Gets a Boolean value that indicates whether the media contains audio.
Gets a Boolean value that indicates whether a media file has started to download.
Gets a Boolean value that indicates whether the element is an Introduction to HTML+TIME media element.
Gets a Boolean value that indicates whether the element can draw on the screen.
Sets a value that indicates whether a DirectMusic segment ends immediately or plays a transition before ending.
Gets a Boolean value that indicates if the source of the media object is streamed.Gets a Boolean value that indicates if the source of the media object is streamed.
Gets a value that indicates the latest time for efficient seeking.
Sets whether to allow introduction and ending transitions longer than one bar with DirectMusic.
Gets the duration of the element's media file.
Gets the height of the element.
Gets the width of the element.
Gets the MIME type of the object.
Sets whether to attempt to modulate between keys when playing transitions with DirectMusic.
Sets the name of the DirectMusic motif to play.
Sets or gets a value that indicates whether the audio is turned on or off.
Sets or gets the object used to render the media associated with this element.
Gets the object that plays media files.
Gets the rating of the media file.
REPEATCOUNT repeatCount Sets or gets the number of times an element timeline repeats. REPEATDUR repeatDur
Sets or gets the number of seconds that an element timeline repeats.Sets or gets the number of seconds that an element timeline repeats.
Sets or gets the conditions under which an element can be restarted on a timeline.
Sets whether to play a DirectMusic segment as a controlling segment or a secondary segment.
Sets or gets the playback speed of an element relative to its parent time container.
Sets or gets the source URL of the media.
Sets or gets a value that indicates the synchronization rules for the element timeline.
Sets or gets whether the time container must synchronize playback to this element.
Sets or gets the time variance that is allowed on a timeline with locked synchronization.
Gets the approximate bandwidth available to the system in bits-per-second.
Indicates whether to display a text equivalent of the audio portion of the presentation.
Indicates whether a given language is selected in a user's system preferences.
Specifies whether overdubs or subtitles render during a presentation.
Sets or gets the action that is taken on the element while the timeline is active.
Sets or gets the type of timeline associated with an element.
Gets the parent time container element of the current element.
Gets the title of the media file.
Sets or gets the type of DirectMusic transition to use between segments.
Sets or gets the MIME type of the media object referenced by the SRC attribute.
Sets or gets a value that indicates how the object is to be updated.Sets or gets a value that indicates how the object is to be updated.
Sets or gets the volume of the media file.Events
Event Property Description onbegin
Fires when the timeline starts on an element.
Fires when the timeline stops on an element.
Fires when the element's associated media finish loading.Fires when the element's associated media finish loading.
Fires when an element's media file causes any error.
Fires when the element loses synchronization with its associated timeline.
Fires when the timeline on an element pauses.
Fires when the timeline repeats on an element, beginning with the second iteration.
Fires when an element's timeline resumes from a paused state.
Fires when the timeline on an element begins to play backward.
Fires whenever a seek operation is performed on the element.
Fires when synchronization is resumed between the element and its associated timeline.Methods
Method Description activeTimeToParentTime
Converts a value in the element's active timeline to the corresponding point in the parent timeline.
Converts a value in the element's active timeline to the corresponding point in the segment timeline.
Starts the element on the timeline.
Starts an element's timeline at the specified time.
Converts a value in the document timeline to the corresponding point in the element's parent timeline.
Stops the element on the timeline.
Ends an element's timeline at the specified time.
Converts a value in the parent timeline to the corresponding point in the element's active timeline.
Converts a value in the element's parent timeline to the corresponding point in the document timeline.
Stops playing an element's timeline at the current point.
Removes any changes made to the element and returns the element to its original state.
Restarts the element's timeline from a paused state.
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.
Locates the specified point on the element's segment timeline, and begins playing from that point.
Locates a specified point on the element's segment timeline, including repetitions, and begins playing from that point.
Locates a specified frame in the object.
Converts a value in the element's segment timeline to the corresponding point in the element's active timeline.
Converts a value in the element's segment timeline to the corresponding point in the element's simple timeline.
Converts a value in the element's simple timeline to the corresponding point in the element's segment timeline.Objects
Object Description currTimeState
Contains information about an HTML+TIME timeline.
Although different media-based elements exist, there is no functional difference in their current implementation. However, you are encouraged to use elements such as t:ANIMATION, t:AUDIO, t:IMG, t:MEDIA, t:REF, and t:VIDEO for improved document readability and enhanced support.
This element duplicates the HTMLimg element and provides control over media loading. Use this element instead of the HTML img element for timing images in Microsoft Internet Explorer 5 and later.
t:is used to associate this element with an XML namespace. You must declare the XML namespace in the html tag of your document when using this element.<HTML XMLNS:t ="urn:schemas-microsoft-com:time"><?IMPORT namespace="t" implementation="#default#time2">
The members listed in the following table might not be accessible through scripting until the window. onload event fires. Waiting for this event to fire ensures that the document is completely loaded, that all behaviors have been applied to corresponding elements on the document , and that all the behavior's properties, methods, and events are available for scripting. Using any of the behavior-defined members before the window. onload event fires could result in a scripting error, indicating that the object does not support that particular member.
Media elements with timed children should have their TIMECONTAINER attribute set to
parfor Synchronized Multimedia Integration Language (SMIL) 2.0 compatibility. Currently, media elements such as t:ANIMATION, t:AUDIO, t:IMG, t:MEDIA, t:REF, and t:VIDEO do not treat their child elements as parallel but the SMIL 2.0 specification says that media elements with timed children should be parallel. Setting this value now may prevent incompatibilities.
This element is not rendered.
This element requires a closing tag.