.

JavaScript Image Map Assignment Help

Image Map

Java script has the facility to build client/server image map.  The <img> tag has the attribute called usemap for contructing client/server image map.

Here the image is act as map.  Using <img/> tag normal image is inserted.  To act as map it hold an additional attribute called ‘usemap’. The value of usemap attribute is the name attribute value of <map>.  <map>attribute has only one property called name.  It has <area> tag, it defines the hot spot area and assigns hyperlink.

The following program and output illustrates the above:

Program:

image map img1

Output:

image map img2

Explanation

In the output screen, the perl, HTML, PHP are acted as hot spot.  While clicking on the hot I takes the user to the index pages of the corresponding perl, HTML and PHP.

.