The Map File
Before creating a map file, note the type of imagemap program
which resides on your web server -- either NCSA for the imagemap
program or CERN for htimage. The format of your map file will vary
depending on the program type. This server uses the htimage program.
Therefore, the map file which corresponds to IHiP's sample image follows
the CERN format:
default /cgi-bin/nph-null
rect (20,21) (77,101) /ihip/rectangle.html
poly (89,23) (132,23) (132,65) (90,23) /ihip/triangle.html
circle (110,91) 22 /ihip/circle.html
rect (22,137) (133,225) mailto:webmaster@ihip.com
This map file was created using Mapedit. If you choose to make use of
such a tool, be sure to specify the program type when prompted. The same
map file in NCSA format (below) has been provided as a reference
for those of you who are using NCSA's imagemap program.
default /cgi-bin/nph-null
rect /ihip/rectangle.html 20,21 77,101
poly /ihip/triangle.html 89,23 132,23 132,65 90,23
circle /ihip/circle.html 110,91 110,113
rect mailto:webmaster@ihip.com 22,137 133,22
Note the differences in format between both files; especially
the notation of coordinates relating to the circular region.
Also note that the "relative path" can be used if links
are to local files.
Helpful Tips Offered By Other IHiP Visitors
1) Remove any carriage return symbols (^M) from your map files.
The presence of these symbols produced a Mapping Server Error. (Sonny R.)
2) Make sure you use front-slashes ("/") instead of back-slashes.
back to IHiP