
Any graphic image on a Web page with designated "hot spots". A hot spot is an physical area on the image that when click by a mouse, will load a new Web page. An image can have several hot spots pointing to different Web pages. The following is an example of a Clickable Image Map:
To setup a clickable imagemap for your web site, you need to do three things:
Create an image: An image can be created using any Computer Graphics Package. If you have a scanner, you can scan pictures and save then as a Web compatible image (.gif or .jpg file).
Create an imagemap map file: The map file connects areas of your image to HTML files in your Web directory (filename.map). The following image map file was used to create the hot spots in the clickable image map example above:
default outside.htm rect (198,61) (353,108) rectangl.htm circle (301,160) 45 circle.htm poly (157,83) (121,198) (252,162) (156,83) triangle.htm poly (55,74) (88,78) (99,49) (112,77) (142,73) (125,100) (141,121) (113,122) (101,152) (88,123) (57,126) (75,101) (53,75) star.htm
Each line begins with a method. The methods used in the above
example are:
The point method can also be used for mouse clicks in one spot.
Both HTTP address or the relative HTML filename in your Web directory needs to be specified after the method. This is the destination Web page after the user clicks on the current area.
Each method is evaluated in the order it is placed in the
map 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.
<A HREF="clickmap1.map"> <IMG SRC="clickmap1.gif" Border=0 ISMAP> </A>Download the following Map Utility. This tool makes it really easy to generate map files without explicitly coding the coordinates!
Map Edit Utility for Creating Image map files