NCSA Imagemap Format


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 which will be used when the client clicks on a location that does not intersect any other region. If the URL is nocontent, then the click will not take the client to another page.
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:

Example

default nocontent
rect u.html 19,12 75,75 
rect r.html 80,11 135,75 
rect http://www.zeus.co.uk/ 138,14 184,76
point l.html 150,130