When a hyperlink is created on an image, clicking on any part of the image will lead to opening of the document specified in the <A HREF TAG>. Linked regions of an image map are called hot regions and each hot region is associated with a filename.html.
SYNTAX:
<map name="map'sname">
ATTRIBUTES OF IMAGE MAPS:
SYNTAX:
<map name="map'sname">
ATTRIBUTES OF IMAGE MAPS:
- Coords
- Rectangle
- Polygon
- Href
Coords:
Each of the above shapes takes different coordinates as parameters.
Rectangle:
Rectangle:
4 coordinates (x1,y2,x3,y2)
Polygon:
Polygon:
3 or more coordinates.
Href:
Href:
Takes the name of the .html file that s linked to the particular area on the
SAMPLE CODING:
SAMPLE CODING:
No comments:
Post a Comment