August 15th, 2000, 11:33 AM
I am trying to perform an image swap in a form using the input type of 'image'. For some reason, onmouseover or onmouseout does not work when I assign it different images:
<input name="image1' type=image src="image.jpg" border=0 onclick="submit()"
I have tried using onmouseout/onmouseover in various combinations to achieve the effect and it only seems to work OUTSIDE of the form tags.
Can anyone offer any useful advice?
August 15th, 2000, 10:55 PM
I dont know for sure but I would try document.form.image1.src... Maybe the image becomes part of the form object once inside the tags?
Just a guess, I'm a novice