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

Q1460 How can I change an image to another only pointing to it without clicking the image directly?

irt.org | Knowledge Base | JavaScript | Image | Q1460 [ previous next ]

Q1460 How can I change an image to another only pointing to it without clicking the image directly?

Try:

<a href="http://www.irt.org/"
onMouseOver="if (document.images) document.images['theImage'].src='anotherimage.gif';"
onMouseOut="if (document.images) document.images['theImage'].src='originalimage.gif';"
><img name="theImage" src="originalimage.gif">

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.