<MAP>. <MAP>
specifies the regions of a mapped image and the associated URLs
within a structure of the form:
<MAP NAME="string">
<AREA SHAPE="rect" COORDS="x1, y1, x2, y2" HREF="url_for_region">
..... more shapes ...
</MAP>
<AREA SHAPE="circle" COORDS="x1, y1, r" HREF="url_for_region"> <AREA SHAPE="polygon" COORDS="x1, y1, x2, y2 ... xn, yn" HREF="url_for_region">With the circle, (x1,y1) is the center and r is the radius.
You reference the map from within an <IMG> tag
using the USEMAP attribute. For example:
<IMG SRC="a_picture.gif" USEMAP="#string">references the map named "string" listed above. If a browser does not understand USEMAP it will default to the regular behavior.
| One | Two |
| Three | Four |
<IMG SRC="four_corners.gif" USEMAP="#example"><MAP NAME="example"> <AREA SHAPE="rect" COORDS="0, 0, 199, 199" HREF="first.html"> <AREA SHAPE="rect" COORDS="200, 0, 399, 199" HREF="second.html"> <AREA SHAPE="rect" COORDS="0, 200, 199, 399" HREF="third.html"> <AREA SHAPE="rect" COORDS="200, 200, 399, 399" HREF="fourth.html"> </MAP>The browser will reference: