___________________________________________________________________________ WWW: Creating image maps in WWW pages Q. I've seen Web pages where I can click on areas of a graphic and jump to other places. How do I create these image maps for my own page? A. Imagemaps link sections of a graphic to HTML pointers. Making imagemaps work requires a binary program and a map-definition file. The imagemap program that *was used* for referencing graphics images was located at: /www/htbin/imagemap This program is no longer available or needed as image map support is now compiled within the httpd server (mod_imap). More information on this module and usage can be found at the Apache home page module section... http://httpd.apache.org/docs/mod/mod_imap.html For an imagemap to work for particular images, you must create a customized map-definition file that references each section of the image. The map-definition file can have any legal UNIX file name, but must have the suffix: .map For example, the map-definition file in the example below is named: map_name.map The map-definition file contains lines similar to these: default http://www.halcyon.com/user/default.html rect http://www.halcyon.com/user/first.html 38,38 78,105 rect http://www.halcyon.com/user/second.html 82,38 115,105 In the example above, "user" is the directory where the page resides; this is always your login name. The first line of the map-definition file defines the default pageto reference. Subsequent lines reference a particular area of an image to associated HTML files. In these lines, the first field (in the example above, "rect") defines the shape of the mapped area of the image to be mapped. This field can have any of the following values: circle poly rect The second field is the HTML file that is displayed when the referenced area of the image is clicked. This field may contain any standard-format URL. Following the second field are coordinates that define the boundaries of the image to be mapped. These coordinates, in association with the defined shape in the first field, are sufficient to specifically describe the "hot" area. You can obtain the coordinates for the third field from the graphic program used to create or display the graphic, such as Adobe Photoshop. You must store your map-definition files in a subdirectory of your own Web directory. For example, if your login name was "user" you might create a "maps" subdirectory to store your map-definition files (if you have only recently created your web directory, this subdirectory was automatically created for you). To create this directory, use a telnet program to connect to: king.halcyon.com Log in using your login name and password. Change your current directory to your Web directory using the "cd" command. For example: cd /www/username Create the "maps" subdirectory with the "mkdir" command: mkdir maps You can then use your FTP program to upload your map-definition files to your new directory, which is: /www/username/maps To reference your imagemap from within a HTML-formatted page, use a URL of the following form: In the example above, "images" is another subdirectory we assume you've created in your Web directory: /www/user (12-Apr-96/wwwcimiw/WRD) ___________________________________________________________________________ Copyright 1996 Northwest Nexus Inc. All Rights Reserved. This document may not be reproduced nor redistributed in any form without express permission; contact us at support@halcyon.com with questions.