Adding Behaviors to Image Maps

Moving the pointer over any portion of a standard rollover image calls up the JavaScript script and causes the image swap to happen. There might be times, however, when you want the rollover to occur only when the user rolls over a certain part of the image. In such cases, you can use image maps to define those hotspot areas.

1.
In meditations.html, select the med_img_map.jpg image and give it the name nav. Next, use the Rectangular Hotspot tool on the Property inspector to draw an image map closely around the word meditations. The image map makes only the word meditations on the med_img_map.gif ...

Get macromedia Dreamweaver 8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.