May 13, 2003 #1 GB555 Technical User May 13, 2003 3 GB I want to be able to change a picture in one cell of a table when the mouse is over another cell in the table. How can I do this?
I want to be able to change a picture in one cell of a table when the mouse is over another cell in the table. How can I do this?
May 13, 2003 #2 greedyzebra Technical User Sep 5, 2001 140 US You can use the "onmouseover" event for a table cell just as you would an image (if you've done image rollovers). Just do this: <td id="someID" onmouseover="changePicture()" onmouseout="restorePicture()"> Where change/restorePicture are functions that perform the rollovers. You'll have to have an id for the table cell whose "data" you'll be changing, of course. Hope that helps. Upvote 0 Downvote
You can use the "onmouseover" event for a table cell just as you would an image (if you've done image rollovers). Just do this: <td id="someID" onmouseover="changePicture()" onmouseout="restorePicture()"> Where change/restorePicture are functions that perform the rollovers. You'll have to have an id for the table cell whose "data" you'll be changing, of course. Hope that helps.