Client-Side Imagemaps
With client-side image maps, the MAP that relates parts of the
image to different URLs is stored in the current file.
This saves a round trip to the server, and should present
documents to you faster. Since the MAP information is stored
in the document you are viewing, the destination URLs can be
displayed in the status area as you pass the mouse over the image map.
<MAP NAME="name">
<AREA
[SHAPE="shape"]
COORDS="x,y,..."
[HREF="reference"] [NOHREF]>
</MAP>
|
|---|
-
The name
- specifies the name of the map so that it can be referenced
by an
IMG element.
-
The shape
-
gives the shape of this area.
Currently the only shape defined is "
RECT".
-
The
COORDS tag
-
gives the coordinates of the shape,
using image pixels as the units.
For a rectangle, the coordinates are given as
"left,top,right,bottom".
-
The
NOHREF tag
-
indicates that clicks in this region should
perform no action.
An
HREF tag specifies where a click in that
area should lead.
-
The
USEMAP attribute in an IMG element
-
indicates that it is a client-side image map.
It can be combined with the
ISMAP attribute
to indicate that the the image can be processed as either a client-side
or server-side image map.
The argument specifies which map to use with the image, imagename.
The proposed spec on image maps allows for the option to include
ALT text in the IMG element.
<IMG SRC="imagename" [USEMAP="#
name"] [ALT="text"]>
See also:
Server Side Imagemaps.
|