To create a URL that can be used by an image map, you need to create
two files - the imagemap.conf
file and the map file. Using
that map files requires nothing more than the correct link in your
HTML file.
imagemap.conf, and is in either
the http configuration directory, or a your home directory.
In this file, any line beginning with a # is a comment,
and will be ignored.
Any non-blank line should be of the form
mapname : pathmapname is the name of the map given in the link for the map. path is the path to the map file. The path is either absolute, or relative to the directory that
imagemap.conf is in.
In this file, any line beginning with a # is a comment,
and will be ignored.
Other non-blank lines have the form:
method URL coordinatesMethod is one of
/path/to/file without the http://server.name
part, or an absolute URL.Note that each method is evaluated as it is found in the file. If two methods overlap, the first one in the file will be used.
<A HREF="/cgi-bin/imagemap/admin/maptest">
<IMG SRC="image.gif ismap>
</A>
The first part of the URL - cgi-bin - is where script
files live at phone.net. If you are using a different server, you may
need to use a different name here. The second part -
imagemap - is the name of the imagemap program. These will
always be the same on a server.
If you are using imagemap.conf in
your home directory, as this one is, the next part of the URL is your
user name on that server, so that imagemap can find the config file.
If you are using imagemap.conf in the HTTPD config
directory, omit this part.
The rest of the URL is the name of the map in
imagemap.conf.
imagemap.conf in admin's home directory on phone.net,
which contains:
maptest: html/maptest/mapAnd
html/maptest/map contains:
default /maptest/how.html error /maptest/error.html rect /maptest/blue.html 150,10 290,150 rect /maptest/black.html 150,150, 290,290 rect /maptest/orange.html 10,150 150,290 rect /maptest/grey.html 10,10 150,150This example is relatively simple, but has all the parts.
Please send us any comments you may have. If your client does not support forms, send mail to admin@contessa.phone.net