Hi,
I'm trying to set up a rollover on an image map so that the image changes on mouse over.
I keep getting "libcat is not a function" in the firefox javascript debugger.
Honestly I don't use javascript that often so I may have made pretty simple mistake.
here's this part of the javascript...
here's the html...HTML Code:<script type="text/javascript"> function libcat(img_ovr) { document.getElementById(img_ovr).src = "libcat.gif"; } </script>
[HTML]<div id="wrapper">
<img alt="leftcolumn" src="colleft.gif" height="444px" width="117px" id="leftone" />
<img alt="centerleft" src="left.gif" height="444px" width="262px" id="lefttwo" usemap="#leftmap" />
<map id ="leftmap" name="leftmap">
<area shape ="poly" coords ="141,76,174,124,218,166,232,165,253,156,254,107,252,54,192,56"
onMouseOver="libcat('lefttwo')"
href ="_insert_here_" alt="library catalogue" />
</map>
</div>
Any ideas what I'm doing wrong?
Thanks




Bookmarks