|
Q813 How can I use "onMouseOver" on a link to change a specified image?
irt.org | Knowledge Base | JavaScript | Image | Q813 [ previous next ]
Q813 How can I use "onMouseOver" on a link to change a specified image?
Try:
<Img src="image.gif" name="myImage" width="100" height="100">
<a href="http://www.irt.org/" onMouseOver="if (document.images) document.images['myImage'].src = 'another.gif'" onMouseOut="if (document.images) document.images['myImage'].src = 'image.gif'">link text</a>
|
|
|
Copyright © 1996-2008 irt.org, All Rights Reserved.