The Much Improved imagemap Script<IMG SRC="image.file"> tag.
The map file is described below, as is the HTML code needed to link the image and the map file.
The basic idea is:
Lines beginning with # are comments. Every other non-blank line consists of the following:
method url coord1 coord2 ... coordn
coord are each coordinates, format x,y. The number
of coordinates depends on method.
method is one of the following:
circle
For a circle. Coordinates: center edgepoint
circle http://www-pcd.stanford.edu/ 30,30 10,55
poly
For a polygon of at most 100 vertices. Each coordinate is a
vertex.
poly html-simple.html 32,31 10,10 29,10
rect
For a rectangle. Coordinates: upper-left lower-right
rect /mogens/intro/fish.map 10,23 30,100
url is one of the following:
imagemap program in the /cgi-bin/ directory. The URLs look like this:
http://www-cs-staff.stanford.edu/cgi-bin/ismap/~yourname/map-file.nameand you wrap that URL using an image-map image, like so:
<A HREF="http://www-cs-staff.stanford.edu/cgi-bin/ismap/~yourname/map-file.name"> <IMG SRC="some.gif" ISMAP></A>In other words, the anchor contains an image which has the magic word
ISMAP embedded in the tag. This will cause the browser to
place the coordinates of the click after the URL before calling the
ismap program.
http://www-pcd.stanford.edu/cgi-bin/ismap is the program name.
http://www-pcd.stanford.edu/~mogens/intro/fish.map is the map file.
http://www-pcd.stanford.edu/~mogens/intro/fish33.gif is the picture.
http://www-pcd.stanford.edu/~mogens/intro/ImageDemo.html is the HTML document that will contain the clickable image
<A HREF="http://www-pcd.stanford.edu/cgi-bin/ismap/~mogens/intro/fish.map"><IMG SRC="fish33.gif"
ISMAP></A>
xv to get the
coordinates. The completed picture allows you to click on the objects in the picture and get descriptions of the object.
webmaster@cs.stanford.edu