| iMatix home page | Xitami home page | << | < | > | >> | Xitami Version .

## Image Maps

Xitami supports NCSA-type clickable image maps. When an image has the ISMAP attribute, Xitami will search for and use an image map file if the browser cooperates. An image map file has the name of the image, the extension .map, and this syntax:

- Lines starting with # are ignored.
- Blank lines are ignored.
- Data lines consist of an element type, a URL, and optionally a list of coordinates, separated by spaces.

The URL can be any Internet URL, either an absolute image map, or a relative image map. Xitami will recognise and handle these types of URLs:

- A filename with no path. Xitami prefixes the path of the image map file.
- A filename with a path. Xitami prefixes "http://", the name of the server host, and the port number if that is not 80.
- An absolute URL, starting with http: or another scheme such as mailto:, ftp:, etc.

You can use these elements types in the image map:

Element syntax: | Effect:
--- | ---
`default` url | Defines the default URL for the image.
`rect` url x1,y1 x2,y2 | Defines a rectangle between the two corner points specified. Assumes x2 >= x1, y2 >= y1.
`circle` url x1,y1 x2,y2 | Defines a circle where (x1,y1) is the circle's center, and (x2,y2) is any point on its circumference.
`point` url x,y | Defines a point. Accepts a click within about 3 pixels of the point.
`poly` url x,y... | Defines a polygon, where (x1,y1)..(xn,yn) defines the perimeter of the polygon. You can specify up to 100 points.

There are many freely-available tools to help you create image maps. Xitami is compatible with these tools, so long as you create the image map in NSCA format.

| << | < | > | >> | Welcome To Xitami | Table Of Contents | Installing Xitami | Administration | Configuration | Using The Common Gateway Interface (CGI) | Using SSI and Filters | Image Maps | Virtual Hosts | The FTP Service | A Beginner's Guide | Writing Web Server Extension (WSX) Agents | Extending Xitami with External Peer Processes | FAQ | Technical Implementation | Getting Support | Release History | License Agreement | Copyright © 1996-99 iMatix Corporation