Tuesday, November 18, 2008

Imagemaps in HTML

Nifty trick to use image maps in HTML


Move the mouse over the image, and look at the status bar to see how the
coordinates change.

img src="planets.gif"
ismap width="146" height="126"

And

img src="planets.gif"
width="145" height="126"
usemap="#planetmap"

map id="planetmap" name="planetmap"

area shape="rect"
coords="0,0,82,126"
alt="Sun"
href="sun.htm"

Code from W3Schools

No comments: