编辑下面的代码:【加编码】
<html> <head> <script> function bigImg(x) { x.style.height="64px"; x.style.width="64px"; } function normalImg(x) { x.style.height="32px"; x.style.width="32px"; } </script> </head> <body> <img onmousemove="bigImg(this)" onmouseout="normalImg(this)" border="0" src="/demo/smiley.gif" alt="Smiley" width="32" height="32"> <p>当用户将鼠标移动到图片时触发 bigImg() 函数。该函数使图片变大。</p> <p>当用户将鼠标移开时触发normalImg() 函数。该函数使图片变回原来大写。</p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂