You are here: irt.org | FAQ | HTML | Q2061 [ previous next ]
In Imagemaps the Area tag will define the coordinates and the respective URL to be invoked on mouse click.
Here is a sample code that shows how to open files by clicking on imagemapes. It is possible to open File1 or File2 by clicking the mouse button on I or II half of Img1.
<MAP name="FileMap"> <AREA COORDS='0,0,100,100' HREF='File1.html'> <AREA COORDS='100,0,200,100' HREF='File2.html'> </MAP> <IMG SRC="Img1.gif" WIDTH='200' Height='100' border='0' USEMAP='#FileMap'>