imageMap: Image Maps with Mouse Interaction
Tracing around the shape of a country's borders is a time consuming process. Scripting the highlights of all the map regions is not a welcome chore to complement this.
This script, at least, takes away the additional work of scripting mouse-interactions.
Adding Mouse-effects to an Image-map
By adding the "imageMap" class to the image element, the script will replace the word "default" in the filename with all the map area's IDs and cache their images.
Required Files
-
jQuery Addon Script: jquery.classbehaviours.imagemap.js
- Prerequisite Script: jquery.classbehaviours.js
- Example Markup: imageMap.html
Comments on this Article