onmouseover 和 onmouseout

  1. <html>
  2. <body>
  3.  
  4. <h1 onmouseover="style.color='red'"
  5. onmouseout="style.color='black'">
  6. 请把鼠标移动到文本上</h1>
  7.  
  8. </body>
  9. </html>