ISMAP
image, and returns a
URL reference for a document that depends on the click location.
The Windows version operates a bit differently than the Unix version.
Casey decided to make the change in the interface so that it would
be easy to launch imagemap directly. Since it is a native Windows
application (and doesn't need a DOS VM) it runs quite fast.
imagemap
script expects to find its configuration
file as:
c:\httpd\conf\imagemap.cnf
.
If you would like to change the location of this file, set up an
environment variable called HTTPD_CONFDIR
and set it
to the path where imagemap.cnf willl be located.
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 WinScriptAlias /cgi-win/
c:/httpd/cgi-win/
, named your map fish,
and used the image fish33.gif for the map, the following line of HTML
will reference it:
<A HREF="/cgi-win/imagemap/fish"><IMG SRC="fish33.gif"
ISMAP></A>
imapdemo : c:\httpd\conf\maps\imapdemo.map
# Demo map file # This file should be pointed at by an entry in IMAGEMAP.CNF # # -Casey Barton #The default page is loaded if no other entries are hit. default /demo/noshape.html # Circles are defined by two points; the first is the center, and the second # is a point on the perimeter. circle /demo/circle.html 50,50 50,10 # Rects are defined by two diagonally opposite vertices. rect /demo/rect.html 130,10 170,90 # Polys can have any number of vertices. poly /demo/poly.html 250,10 210,90 290,90
Robert B. Denny <rdenny@netcom.com>