[JavaScript] JS通过图片的oumousemove和oumouseout动态改变图片的显示 →→→→→进入此内容的聊天室

来自 , 2019-03-14, 写在 JavaScript, 查看 104 次.
URL http://www.code666.cn/view/a0afdf1a
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <script>
  5. function bigImg(x)
  6. {
  7. x.style.height="64px";
  8. x.style.width="64px";
  9. }
  10.  
  11. function normalImg(x)
  12. {
  13. x.style.height="32px";
  14. x.style.width="32px";
  15. }
  16. </script>
  17. </head>
  18. <body>
  19.  
  20. <img onmouseover="bigImg(this)" onmouseout="normalImg(this)" border="0" src="smiley.gif" alt="Smiley" width="32" height="32">
  21.  
  22. <p>The function bigImg() is triggered when the user moves the mouse pointer over the image.</p>
  23. <p>The function normalImg() is triggered when the mouse pointer is moved out of the image.</p>
  24.  
  25. </body>
  26. </html>
  27.  
  28. //javascript/7968

回复 "JS通过图片的oumousemove和oumouseout动态改变图片的显示"

这儿你可以回复上面这条便签

captcha