didgydont Posted July 12, 2009 Share Posted July 12, 2009 hi all lets says i have a table <table> <tr style='background-color: yellow;'><td>col1box1</td><td>col1box2</td><td>col1box3</td></tr> <tr style='background-color: purple;'><td>col2box1</td><td>col2box2</td><td>col2box3</td></tr> <tr style='background-color: yellow;'><td>col3box1</td><td>col3box2</td><td>col3box3</td></tr> </table> is it possible to make it if you move the mouse over say col2box2 the tr goes red but if you move it over col2box3 it goes green or can you only change the td colour thank you for your time Link to comment https://forums.phpfreaks.com/topic/165647-solved-change-tr-colour-on-mouse-over/ Share on other sites More sharing options...
JD* Posted July 12, 2009 Share Posted July 12, 2009 You could have some javascript on each td that would reference the mouse over, pass the name of the td the mouse is currently over and update the background color of the tr. Link to comment https://forums.phpfreaks.com/topic/165647-solved-change-tr-colour-on-mouse-over/#findComment-873828 Share on other sites More sharing options...
didgydont Posted July 12, 2009 Author Share Posted July 12, 2009 thank you im not real familiar with java script so will give it a miss for now and do a bit of reasearch on java script Link to comment https://forums.phpfreaks.com/topic/165647-solved-change-tr-colour-on-mouse-over/#findComment-873844 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.