Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mouse Over Image Change in a Table

Status
Not open for further replies.

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?
 
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=&quot;someID&quot; onmouseover=&quot;changePicture()&quot; onmouseout=&quot;restorePicture()&quot;>

Where change/restorePicture are functions that perform the rollovers.

You'll have to have an id for the table cell whose &quot;data&quot; you'll be changing, of course.

Hope that helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top