This article mainly introduces the mouse after the TR, change the current background color of TR sample code, need friends can come to the reference, I hope to help you.
Examples are as follows: The code is as follows: <html> <head> <meta http-equiv= "Content-type" content= text/html; CHARSET=GBK "> <title> mouse Pass to TR change color </title> </head> <body> <table align=" Center "width=" 100% "border=" 1 "cellspacing=" 1 "cellpadding=" 1 "> <tr style=" Cursor:hand "onmousemove=" Changetrcolor (This) "> <TD align=" center ">1</td> <TD height=" > 123 </td> <TD height= "" > abvx</td> <td height= ">" 465465</td> & nbsp <TD height= ">546654654</td> </tr> <tr style=" Cursor:hand "onmousemove=" Changetrcolor (This) "> <TD align=" center ">1</td> <TD height=" > 123 </td> <TD height= "" > abvx</td> <td height= ">" 465465</td> & nbsp <TD height= >546654654</td> </tr> &NBsp <TR style= "Cursor:hand" onmousemove= "Changetrcolor (This)" > <TD align= "center" > 1</td> <TD height= "a" > 123</td> <td height= ">" abvx</td> &nb Sp <TD height= "> 465465</td> <td height=" ">546654654</td> </TR > </table> <script type= "Text/javascript" > Function changetrcolor (obj) { var _t Able=obj.parentnode; for (Var i=0;i<_table.rows.length;i++) { _table.rows[i]. Style.backgroundcolor= ""; } obj.style.backgroundcolor= "Blue"; } </script> </form> </body> </html>