You can turn sections of an image into links. These linked sections are called hotspots and an image with hotspots is called an image map.
When you select an image on a page in Dreamweaver, you will see the following image map tools in the Properties Inspector:
To create an image map, you need to name the map and then draw your hotspots (rectangles, circles, or polygons) on the image.
Watch as your instructor adds an image map by following the steps below. You can follow along in ClassFiles/Dreamweaver/Exercises/index.html or you can wait until the next exercise in which you will complete the image map.
- Open ClassFiles/Dreamweaver/Demos/index-image-map.html in Dreamweaver.
- Replace the RunnersHome.gif image with image-map.gif.
- Click on the image and name the image map "navigation":
- In the Properties Inspector, click the Rectangle Hotspot Tool and draw a rectangle around the word "Home":
- The Properties Inspector will now show hotspot properties:
- Notice that the Pointer Hotspot Tool is active. This allows you to resize and move your hotspot.
- Make sure to include appropriate alternate text in the Alt field.
- In the Properties Inspector, click the Polygon Hotspot Tool and draw a polygon by clicking point by point around the words "Running Log." If you don't get it exactly right, you can use the Pointer Hotspot Tool to fix your points after:
- Again, make sure to add the alternate text.
- Save the page and open it in the browser.
- Test your hotspots. Do they work?