Click to See Complete Forum and Search --> : Need Help- 'onclick' problem


ten2oneodds
04-10-2005, 04:46 PM
I put this code in and when I go over the image, it doesnt work. And both images are correct.

<a href="rules.html"
onMouseOver="document.pic1.src='onclickrules.gif'"
onMouseOut="document.pic1.src='RULES.GIF'">
<img src="RULES.GIF" BORDER="0" NAME="pic1">
</a>

Any help would be appreiciated. Thanks in advance.

the tree
04-10-2005, 05:53 PM
Javascript is not Java, Java is not javascript. (http://www.webdeveloper.com/forum/showthread.php?t=44049)

You'd do better to use this.src in the image element.