In HTML and XHTML, an image map is a list of coordinates relating to a specific image, created in order to hyperlink areas of the image to different destinations (as opposed to a normal image link, in which the entire area of the image links to a single destination). For example, a map of the world may have each country hyperlinked to further information about that country. The intention of an image map is to provide an easy way of linking various parts of an image without dividing the image into separate image files.
In HTML an image map is made of the actual image, that is embedded with the <img>-tag. The image has to be assigned the attribute "usemap".
The image map comprise a <map>-tag and in the detail of the <area>-tags, which defines the fields with optional weblinks. These are similar to the <a>-Tag defining which URL should be opened.
A Sample of Image Map below:
<img src="/images/stories/lakes.jpg" alt="" width="450" height="339" border="0" usemap="#Map" /> <map name="Map" id="Map"> <area shape="rect" coords="120,85,156,118" nohref alt="Lake Superior" /> <area shape="rect" coords="142,206,179,237" href="##" alt="Lake Michigan" /> ... </map>
Image Map with Tooltips
With jmootips Version 1.1.1 you may add tooltips within images using image maps. (Note: This feature is not available if Bootstrap Javascript Framework used for jmootips. Also it may happen, that Microsoft's Internet Explorer does not display tooltips at all. For a solution for Bootstrap and Internet Explorer see next chapter of this article).To add tooltips to be used with image maps, embed <area>-tags with tooltip tags:
{tip id="127" position="above"}<area shape="rect" coords="120,85,156,118" href="##" />{/tip}jmootips will use the shape-attribute and coords-attribute to position tooltips within image.
Sample of Image Map with Tooltips
To show tip, move mouse pointer onto question marks within image:
