Guidelines for Image Maps
- Create an
image in GIF format
- Choose hotspots on the image - points, circles, rectangles, or convex polygons1 - to set off each URL
- Define a map file associating hotspots with URLs:
Method URL P1 ... Pn
Pi are coordinates in (x,y) format - the number depends on Method
Method is one of the following:
- default - default URL (coordinates: none)
- point - closest point wins (coordinate: the_point)
- rect - rectangle (coordinates: upper_left lower_right)
- circle - circle (coordinates: center boundary point)
- poly - polygon of at most 100 vertices (coordinates: one per vertex)
Example logo.map
- Get a copy of WinGIF, a GIF converter2, to make the previous two steps easier. Then follow this procedure:
- Convert the GIF file to a PCX or BMP file
- Use the cutting and pasting technique to copy the PCX or BMP file from the previous step and paste it at the upper left corner of the Paint Brush screen
- Select View/Cursor Position
- Select View/Zoom In
- Use the arrow keys to move to the (x,y) coordinate
- Repeat the previous step for each coordinate
- Make an in-line image be a link to the map file:
<A HREF="/script_path/imagemap_script/mapfile_path/mapfile.map">
<IMG SRC="image_URL" ALT="text" ISMAP></A>
- Test the image map
Other Web Documents
1A polygon is convex if the straight line-segment joining any two interior or boundary points lies either within or along the boundary of the polygon.
2This is not required for Windows 95/98/2000.
© 1995-2000 Humberto M. Gonzalez (gonzalezh@alpha.montclair.edu)