View Single Post
 
Old August 3rd, 2004, 04:10 PM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi antonio,

You can modify the ChangeColor (and optionally give it a new name to reflect the new behavior) so it changes the cursor, like this:
Code:
function ChangeColor(tableRow, highLight)
    {
        if (highLight)
        {
           // tableRow.style.backgroundColor = 'yellow';
           tableRow.style.cursor = 'pointer';

        }
        else
        {
            // tableRow.style.backgroundColor = 'white';
            tableRow.style.cursor = 'default';
        }
    }
}
Mehdi: That wouldn't work, as it would just work when you hover over the content of each table cell, not the entire table row.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.