View Full Version : Map Link Not Working

Feb 12th, 2003, 12:46 AM
<title>Map Test 1</title>

<body bgcolor="#000000">

<img src="9.gif" usemap="#test1" width="639" height="399" border=0>
<map name="test1">
<area shape=poly coords="359,107,360,107,361,106,362,106,363,105,367,105,368,106,369,107,369,108,370,109,369,110,368,110,367, 111,366,112,365,111,361,111,359,109,359,107" href="javascript: chng('Test','Why is this not working?') ;" alt="Test" title="Test" onMouseOver="window.status='Map Test'; return true">
<table align="center">
<td><div id="Test"></div></td>

What is it that I'm doing wrong? :confused:

The link itself works fine when I use it to link to another page. But I can not get the link to function with the javascript command. When I click the link it says that there is an error. The javascript works fine alone.

So what is it that I have done wrong? :D

Feb 12th, 2003, 01:51 PM
Ok when I try to do what you do I get the error

chng is not defined.

so your problem is with chng what is it that you are trying to get chng to do as there is no function chng() in your script


Feb 12th, 2003, 02:14 PM
i guess you've forgotten to link your *.js file with your HTML file

sure you will not read this message due you've allready found this error :)

Feb 12th, 2003, 04:20 PM

Sorry for wasting your time with this. Perhaps I was a little more tired than I thought. :D

Well, thank you. And please dont laugh at me! :o