phaider
Posts: 37
|
| Posted: 11/19/2008, 1:09 PM |
|
Hello,
i want to change the style (background color of the row) of a grid depending on the mouse.
I do NOT want to use CCS option to have alternate Row colors, i want to change the Background Color of the row depending on the mouse position (onmouseover / onmouseout in the <tr> tag). i have seen an website where it works, but did not see the JS function.
Has oneone of you made such a request (and has tips and/or links for me?)
Regards
Peter
|
 |
 |
Gena
Posts: 591
|
| Posted: 11/19/2008, 1:20 PM |
|
Yes, I have made this on my site. for example, look here http://motleysoft.com/ProductDetail.php?ProductID=86&p=2
each rows in prices table has this feature.
HTML for tr looks like
<tr onmouseover="this.bgColor = '#E3F4FF'" onmouseout="this.bgColor = '#fffefb'">
_________________
Gena |
 |
 |
|