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

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

You are here: irt.org | FAQ | JavaScript | Table | Q1317 [ previous next ]

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?'

©2018 Martin Webb