Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q813 How can I use "onMouseOver" on a link to change a specified image?

You are here: irt.org | FAQ | JavaScript | Image | Q813 [ previous next ]

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>

©2018 Martin Webb