HELLLLLLLLLLLLLLLLLLPPPPPPPP!
I'm trying to change the source image file onmouseover event, but doesn't work. Here's the code. I think the problem is with the " and ' in the mouseOver and MouseOut command. The code works when I eliminate the Mouse events.
<script language="javascript1.2">
document.write('<img src="images/' + carimg[1] + 'onMouseOver="this.src='images/' + carimg[2] + '" onMouseOut="this.src='images/' + carimg[1] + ''">');
</script>
I'm trying to change the source image file onmouseover event, but doesn't work. Here's the code. I think the problem is with the " and ' in the mouseOver and MouseOut command. The code works when I eliminate the Mouse events.
<script language="javascript1.2">
document.write('<img src="images/' + carimg[1] + 'onMouseOver="this.src='images/' + carimg[2] + '" onMouseOut="this.src='images/' + carimg[1] + ''">');
</script>