
August 15th, 2000, 10:33 AM
|
|
Junior Member
|
|
Join Date: Aug 2000
Location: Frederick,MD USA
Posts: 6
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
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:
<form onsubmit="window.open('weblink.html')">
<input name="image1' type=image src="image.jpg" border=0 onclick="submit()"
onmouseover="document.image1.src="imagealt.jpg"
onmouseout="document.image1.src="image.jpg">
</form>
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?
|