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

Q1317 Is it possible to change the background image within a table with an OnMouseOver event?

irt.org | Knowledge Base | JavaScript | Table | Q1317 [ previous next ]

Q1317 Is it possible to change the background image within a table with an OnMouseOver event?

In Netscape Navigator the whole table would have to be re-written:

In Internet Explorer we can get away with:

<table>
<tr>
<td id="td1" background="image1.jpg">
<a href="#" onMouseOver="document.all.td1.background = 'image2.jpg'" onMouseOut="document.all.td1.background = 'image1.jpg'">text link</a>
</td>
</tr>
</table>

Feedback on 'Q1317 Is it possible to change the background image within a table with an OnMouseOver event?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


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