Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.