To use an image map, add usemap="#mapname" to your img tag.
<img src="...." usemap="#mapname" />
And add something in the lines of the following:
<map id="mapname" name="map">
<area shape="rect" coords="59,154,306,380" href="something" alt="some" />
<area shape="rect" coords="689,129,879,368" href="something" alt="some" />
</map>
Remember to set the attributes as appropriate. To get the right coordinates, you could try and use Gimp or some other image tool that allows you to see the coordinates. If you are unsure about how the coords work, you should be able to see various instruction online. The example above contains square or rectangular coordinates.
No comments:
Post a Comment