Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q2061 How do I open files using imagemaps?

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'>

©2018 Martin Webb