
Clickable image maps are an alternative to text-based links for navigating around the Web. Imagemaps are usually highly decorative, and add appeal to the page. Some are quite functional. For example, one could use a clickable map of a city to present views of various locations. The county horticulturist directory in Aggie Horticulture is an example of a location type map.
While imagemaps are decorative and useful, they may increase page loading times and may befuddle users who navigate the Web with "load images" turned off in their browser preferences. Your page should present an alternative for "text only" browsers by way of a text-based navigation bar as well.
This illustrated presentation will show how to make clickable imagemaps and how to serve "client-side" maps using an advanced browser (Netscape or Internet Explorer).

Rectangular portions can be made clickable by using the code:
< area shape="rect" coords="x1,y1,x2,y2" href="filename">
where (x1,y1) is the upper left point of the rectangle and (x2,y2) the lower right. For example to map a rectangle 50 pixels wide and 100 pixels tall in the upper left corner of an image the code would look like:
< area shape="rect" coords="0,0,50,100" href="filename">
Serving Imagemaps via a cgi scriptServer-side imagemaps must be written with a reference to the cgi script on the serving computer. This procedure is fairly complicated and will not be covered in this course.
The most widely supported means of serving a client-side image map is the <MAP> definition tag and the USEMAP command.
A combination ISMAP - USEMAP command can be used to allow for serving client-side mapping as a first choice with server-side mapping if the browser does not support client-side mapping but this technique will not be discussed here.
