Saturday, October 6, 2007

Making parts of images clickable in HTML

<img src="MyImageURL" usemap="#MyMap" />
<map id="MyMap">
<area shape="rect" coords="0,0,100,100" alt="" onclick="alert('Clicked');"/>
</map>


Note: Shape can get these values: Rect, Circle and Polygon

No comments: