按钮动画

  1. <html>
  2. <head>
  3. <script type="text/javascript">
  4. function mouseOver()
  5. {
  6. document.b1.src ="/i/eg_mouse.jpg"
  7. }
  8. function mouseOut()
  9. {
  10. document.b1.src ="/i/eg_mouse2.jpg"
  11. }
  12. </script>
  13. </head>
  14.  
  15. <body>
  16. <a href="/index.html" target="_blank">
  17. <img border="0" alt="Visit yousite!" src="/i/eg_mouse2.jpg" name="b1" onmouseover="mouseOver()" onmouseout="mouseOut()" /></a>
  18. </body>
  19. </html>