Js controls mouse event movement and removal effect display
You can use js to customize the movement and removal effects of mouse events. The following example shows that the background color changes when the events change. This is suitable for new users.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
<Style type = "text/css"> . Style0 { Background-color: # FFFF00; } . Style1 { Background-color: #00 FFFF; } </Style> </Head> <Body> <Table width = "576" height = "79" border = "1"> <Tr> <Td id = "td1" onmousemove = "document. getElementById ('td1 '). className = 'style0'; "onmouseout =" document. getElementById ('td1 '). className = 'style1' "> <div align =" center "class =" STYLE2 "> homepage </div> </td> <Td> <div align = "center" class = "STYLE2"> male </div> </td> <Td> <div align = "center" class = "STYLE2"> female </div> </td> </Tr> </Table> </Body> |