IMG
<IMG
CLASS=classname
ID=value
STYLE=css1-properties
USEMAP=url
VOICEFILE=url
LANGUAGE=JAVASCRIPT | JSCRIPT | VBSCRIPT | VBS
event = script
>
Serves as a menu owner if the USEMAP attribute is specified with a client-side map, with the AREA elements of the specified MAP attribute as menu items. If they are already inside a menu owner, the items are joined to the current menu.
Attributes
- CLASS= classname
- Specifies the class of the element being defined. This is used to associate a subclassed style sheet with the element.
- ID= value
- An SGML ID used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underscore ("_") can be used in the ID name. The ID should be unique throughout the document. If more than one object with the same ID exists in a document, a collection of those named items is created that can be referenced only by ordinal position.
- STYLE= css1-properties
- Specifies an inline style sheet for the element.
- USEMAP= url.
- Only client side maps, specified as #MapID are considered client side maps.
- VOICEFILE= url
- Specifies the voice file attached with this element.
- LANGUAGE= JAVASCRIPT | JSCRIPT | VBS | VBSCRIPT
- Specifies the language in which the current script is written and invokes the proper scripting engine. The default value is JAVASCRIPT.
Language |
Description |
JAVASCRIPT, JSCRIPT |
The scripting language is written in JScript. |
VBS, VBSCRIPT |
The scripting language is written in VBScript. |
- event
- Can be one or more of these events:
onselectionerror
onselectiontimeout
Remarks
When a caller chooses an item from an IMG menu, the WTE clicks on the corresponding AREA element. The onclick event is bubbled up to the containing MAP element, but is not bubbled to the IMG.
Example
<IMG USEMAP=#MyMap>