The CERN htimage program is quite similar to the NCSA imagemap program, with the exception that htimage has no master configuration file. If we called { htimage from this URL:
http://www.host.name/cgi-bin/htimage/usr/www/uk_map?404,451then htimage
htimage then uses the configuration file `` /usr/www/uk_map'' to translate the coordinates `` 404,451''.
The syntax of the configuration file is similar to NCSA's imagemap. An example file might be:
default http://www.cs.ucl.ac.uk/misc/uk/intro.html#map
#London
circle (416,451) 20 http://www.cs.ucl.ac.uk/misc/uk/london.html
#Canterbury
circle (442,463) 30 http://www.cs.ucl.ac.uk/misc/uk/canterbury.html
#Cambridge
circle (413,405) 35 http://www.cs.ucl.ac.uk/misc/uk/cambridge.html
#Bradford
circle (337,312) 18 http://www.cs.ucl.ac.uk/misc/uk/bradford.html
rectangle (335,317) (372,325) http://www.cs.ucl.ac.uk/misc/uk/bradford.html
#Birmingham
rectangle (335,387) (394,397) http://www.cs.ucl.ac.uk/misc/uk/birmingham.html
There are four allowed keywords in the configuration file:
The abbreviations def, circ, rect and poly are also allowed. The order of the shape definitions in the file is important, as if two shapes overlap, the first one that matches the position clicked on is the one that will be chosen. If the clicked position doesn't fall within any of the shapes, the default URL will be returned.