Mount Rushmore ~ Texas ~ Computer Ease
Image Maps Tips
JavaScript, Photoshop, Flash and Fireworks are often used to create image maps. But for those not familiar with JavaScript, having access to expensive software, or wanting to deal with Flash display issues, inexpensive software creating image maps fills that niche.
A clickable image is like a collection of links added to an image, creating "hotspots" on the image itself. Viewers can locate the hotspots by passing the cursor over the image.
How does it work?
Image map components:
The map is defined by various shapes. Rectangles, circles, and polygon shapes are "drawn" onto the image via an image map editor. The hotspots are identified to the browser by their pixel location.
Determining coordinates:Shapes:
Image Map Coding
The first necessary component is the image file that the hot spots refer to. In this example it's called "mymap.gif"
<img src="mymap.gif" usemap="#mymap" alt="description" height="300" width="300" />
<map name="mymap">
<area shape=rect alt="example" title="example" coords="0,0,133,20" href="../index.htm" />
</map>
Map tag attributes
Name - name provided in the USEMAP attribute inside the image tag
Area tag attributes
shape - type of hotspot (circle, rect, poly)
alt - textual description of the URL you are linking to
coords - define the clickable areas by pixel locations
href - URL of link associated with the hotspot
Tips
You can also determine x,y coordinates by using a newer Paint progam (under Accessories):
Before you start