Link to USGS home page
Internal USGS Access Only

Server-Side Imagemaps

Constructing Server-Side Imagemaps

The shape, coordinates, and associated URLs are stored in a separate file called a map file. The suffix of the map file must match what the web-server expects for imagemaps, usually either .imf or .map.

An example of an server-side image map and its associated file:

Imagemap Example

<a href="imagemap.imf">
  <img src="test.gif" "height=184" width="197"
    alt="Imagemap Example" ismap>
</a>

Sample .imf file:

default none.html # You'll be glad you commented your file
poly polygon.html 9,160 23,122 86,157 98,135 114,166 92,181 84,166 #for easier identification
circle circle.html 69,64 69,106 #if you need to edit your urls
rect rectangle.html 127,13 186,148

Note: Server-side imagemaps use the ISMAP attribute in the IMG tag with a link to a map file containing the shapes, URLs and coordinates (rather than the USEMAP attribute of client-side maps).

Additional information on server-side imagemaps can be found on the NCSA Imagemap Tutorial


[up]
"Mastering a Web Site" online course
Created and maintained by Lorna Schmid and David Boldt.
http://water.usgs.gov/usgs/training/webmaster/server_side_maps.html    
Last modified: Wed Mar 10 09:21:41 EST 2004