<IMG...>
     ALIGN="left|right|top|texttop|middle|absmiddle|baseline|bottom|absbottom"
     ALT="Alternative Text"
     BORDER="Pixels"
     CLASS="Style Sheet Class"
     CONTROLS="Flag"
     DATAFLD="Data Source Column Name"
     DATASRC="Data Source Identifier"
     DYNSRC="URL of video"
     HEIGHT="Pixels"
     HSPACE="Pixels"
     ID="Unique Identifier"
     ISMAP="Flag"
     LANG="Language descriptor"
     LANGUAGE="Scripting Language descriptor"
     LOOP="Number|-1|infinite"
     LOOPDELAY="Milliseconds"
     LOWSRC="URL"
     NAME="Element Identifier"
     SRC="URL"
     START="fileopen|mouseover"
     STYLE="Style Sheet Setting"
     TITLE="Title of element"
     USEMAP="#Image Map Reference"
     VRML="URL"
     VSPACE="Pixels"
     WIDTH="Pixels"
     onClick="Script Function"
     onDblClick="Script Function"
     onDragStart="Script Function"
     onFilterChange="Script Function"
     onHelp="Script Function"
     onKeyDown="Script Function"
     onKeyPress="Script Function"
     onKeyUp="Script Function"
     onMouseDown="Script Function"
     onMouseMove="Script Function"
     onMouseOut="Script Function"
     onMouseOver="Script Function"
     onMouseUp="Script Function"
     onSelectStart="Script Function"
     onAbort="Script Function"
     onBlur="Script Function"
     onError="Script Function"
     onFocus="Script Function"
     onLoad="Script Function"
     onResize="Script Function"
>

Description

Includes an image in the document.

Attributes

Attribute Description
ALIGN Specifies the alignment of the <IMG> element. Values of left or right will cause the rest of the document text to 'float' around the image.
ALT Specifies alternative text, should the image not be displayable. The value of the ALT attribute may be presented as a Tool-Tip when the mouse hovers over the image.
BORDER Sets the width of the images border.
CLASS Sets the style sheet class (specified in an in-line, linked or imported style sheet) to be applied to the element.
CONTROLS For <IMG DYNSRC="...">, CONTROLS is a flag which specifies whether the video playing controls are displayed or not.
DATAFLD Specifies the column name of the data (from the data source specified in the DATASRC attribute) to be used for populating the element. For the <IMG> element, the contents of the data will specify the SRC attribute, so should be a URL pointing to an image file.
DATASRC Specifies the ID attribute of an embedded data-source object (using the <OBJECT> element) that will be used as the data source for the elements data.
DYNSRC Provides the URL reference of a video clip that will be embedded in the document.
HEIGHT Specifies the height of the embedded image in pixels. Specifying a value other than the actual images height will re-size it's height accordingly (but not maintain the aspect ratio).
HSPACE Specifies an amount of horizontal white space (I.e. to the left and right) surrounding the image.
ID Sets a unique identifier for the element, allowing it to be referenced within scripting functions, or to specify a style sheet setting, set using a #<style_class> class selector.
ISMAP A flag that specifies whether the image is a server-side image map. If it is, then the <IMG> element should be surrounded by an <A> element that provides the URL of a script that handles the image map processing.
LANG Specifies the language (using an ISO country code derived classifier) that the element is using, for browsers that support document localisation.
LANGUAGE Sets the scripting language that any in-line scripting events are written in.
LOOP Depending on the setting of the LOOP attribute, the in-line video will play a certain number of times, or indefinitely ('-1', or 'infinite').
LOOPDELAY Specifies the delay (in milliseconds) between successive plays of the in-line video.
LOWSRC Provides a URL to an image of lower resolution than that specified in the SRC attribute. The image specified in the LOWSRC attribute (e.g. a grey-scale, or lower resolution version of the main image) will be displayed first.
NAME Sets a unique identifier for the image, which can be used to identify the image in scripting functions (through the images collection).
SRC Specifies the URL of the image file to be displayed.
START Used with <IMG="dynsrc"...>, START specifies when the in-line video should start playing. When the video file has finished loading (START="fileopen") or when the mouse is passed over the embedded video clip (START="mouseover").
STYLE Sets in-line style sheet settings for the element, which will over-ride any set in a <STYLE> block, or externally linked to the document.
TITLE Specifies an informational title for the element. The contents of the TITLE attribute may be presented as a Tool-Tip by some browsers.
USEMAP Specifies the name of a client side image map (set in the <MAP NAME="..."> element) to be used to define the hot-spots for the image. The image map needn't reside in the current document. If not, then the USEMAP attribute should take a value of the format <file_name.htm>#map_name.
VRML Specifies the URL of a VRML file to be embedded in the document.
VSPACE Specifies an amount of vertical white space (I.e. to the left and right) surrounding the image.
WIDTH Specifies the height of the embedded image in pixels. Specifying a value other than the actual images height will re-size it's height accordingly (but not maintain the aspect ratio).

Scripting Events

Event Description
onClick Fired whenever the user clicks the element (or its contents) with the mouse
onDblClick Fired whenever the user double-clicks the element (or its contents) with the mouse (the double-click speed is dependant on the users system settings).
onDragStart Fired when the users initiaties dragging of the element (or it's contents)
onFilterChange Fired whenever a filter is applied to an element, or whenever the properties of an applied filter are changed.
onHelp Fired whenever the user presses 'F1' (for help) and the element has the users current focus.
onKeyDown Fired when the user presses a key (only when the key is actually pressed) when the element has the focus.
onKeyPress The onkeypress event is similar to the onkeydown event, except that it returns the UNICODE value of the key or keys being pressed when the event occurs.
onKeyUp The onkeyup event is fired when a previously pressed key is released while the referenced element has the focus.
onMouseDown The onmousedown event fires whenever the user presses a button on the mouse, with the event being initially fired for the element that has the focus when the mouse button is clicked, and bubbling up through the element objects until an onmousedown event handler is found.
onMouseMove The onmousemove event occurs whenever the users mouse moves over the element.
onMouseOut The onmouseout event fires when the users mouse leaves the area defined by the referenced element.
onMouseOver The onmouseover event fires when the users mouse enters the area defined by the referenced element.
onMouseUp The onmouseup event fires after a users mouse button has been pressed and released.
onSelectStart The onselectstart event is fired whenever the users starts to select some text that is the contents of the referenced element.
onAbort Fired when the <IMG> loading is aborted, for whatever reason (i.e. network connection failure, user intervention etc.)
onBlur Fires when the element loses the users focus (i.e. the user clicks on a different element within the document).
onError Fired when an error occurs in attempting to locate or download the image file.
onFocus Fires whenever the element receives the focus, either by the user directly clicking on, or 'tab'bing to the element, or when the focus is applied through scripting.
onLoad Fires when the image has finished loading and has been displayed by the browser.
onResize Fired whenever the element is resized.


See 'HTML Reference|Media Embedding|<IMG>' for more information.