make imagemap
and
you should be all set.
imagemap
script expects to find its configuration
file as:
/usr/local/etc/httpd/conf/imagemap.conf
.
If you would like to change the location of this file, edit
cgi-src/imagemap.c
, change the setting of
CONF_FILE
, and recompile with make imagemap
.
In this file, lines beginning with a # are comments. Every other non-blank line consists of:
name : path
name
is the name of the particular mapping. You use it
when you reference the image.
path
is the full path to the map configuration file for
this mapping.
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
depends on method
.
method
is one of the following:
circle
For a circle. Coordinates: center
edgepoint
poly
For a polygon of at most 100 vertices. Each coordinate is a vertex.
rect
For a rectangle. Coordinates: upper-left lower-right
url
is one of the following:
For example, if you have a ScriptAlias /cgi-bin/
/usr/local/etc/httpd/cgi-bin/
, named your map fish,
and used the image fish33.gif for the map, the following line of HTML
will reference it:
<A HREF="/cgi-bin/imagemap/fish"><IMG SRC="fish33.gif"
ISMAP></A>
fish : /usr/local/etc/httpd/conf/fish.map
xv
to get the
coordinates.
Return to administration overview
httpd@ncsa.uiuc.edu