wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Table" Watch "Table" New topic


Mahesh Malviya
Ranch Hand

Joined: Aug 20, 2004
Posts: 39

There are number of rows in a table in a html page.
I want to change the color of the row(<tr> in which my mouse comes and its colour should become as it is when mouse moves out of the row.
I have trapped both in and out events of the mouse when it moves in the row and goes out of the row. But what java script code should I write to show one row coloured when mouse moves on the row.

Mahesh Malviya
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376

Mahesh Malviya
Ranch Hand

Joined: Aug 20, 2004
Posts: 39
Thanks a lot.

Mahesh Malviya
wood burning stoves
subject: Table
Similar Threads
JTable and popup
popup menu when clicked on link
How to Stop JTable from Scrolling on Insert
Problem with row focus and scroll
retain row highlighting after selecting a row in datatable