Adding javascript
You can only use the HREF, onmouseout and onmouseover events - nothing else.
Don't try to use the "onClick" event, Netscape 4 doesn't see it.
-- I'll show you what to use for that further down the page
Here's the code to set up our map
and notice how I added javascsript to the HREF attribute. This is insted of
trying to use the onClick event.
<MAP NAME = "IMAP">
<AREA NAME = "link1" COORDS = "54,105,118,125" HREF =
"javascript: ShowMessage()">
<AREA NAME = "link2" COORDS = "104,53,171,75" HREF =
"http://www.netscape.com">
</MAP>
<IMG SRC = "imap.gif" WIDTH = 240 HEIGHT = 155 USEMAP = "#IMAP">
Here's the script I added (but you could use whatever expressions you wanted
to):
<SCRIPT LANGUAGE = "JavaScript">
function ShowMessage()
{
document.form1.Textbox.value = "Do you really want to go to the Microsoft
site?"
}
</SCRIPT>