Imagemaps
Imagemaps allow you to provide point-and-click graphical menus on your
web pages.
The map information is stored in a NCSA `map file', the format of which is
as follows.
Lines beginning with # are comments.
Every other non-blank line consists of the following:
method URL coord1 coord2 ... coordn
URL is one of the following:
A Local URL
For example: /docs/tutorials
A Full URL
For example: http://www.yahoo.com/
A coord entry is a x,y coordinate, the number depends on the method as
show below.
Method | Coordinates | Comments
default | none | For the default URL
| circle | center edgepoint | For a circle
| poly | Each coordinate is a vertex | For a polygon of at
most 100 vertices
| rect | upper-left lower-right | For a rectangle
| point | point x,y | For closest to a point
| |
Notes:
- Each method is evaluated in the order it is placed in the
configuration file. If you have overlapping areas, such as a circle
inside of a rectangle, you should place whichever one you want
evaluated first before the other in the map file. In this case, we
would put the circle before the rectangle.
- Also note that it does not make sense to use the default method
with the point method because if even one point method is
specified, anywhere you click will be considered close to the point
and the URL specified by point will be serviced.
Back to the features index