W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
运行代码
<html> <head> <script type="text/javascript"> function moveover() { document.getElementById('image').src="/i/eg_bulbon.gif" } function moveback() { document.getElementById('image').src="/i/eg_bulboff.gif" } </script> </head> <body> <b>请把鼠标移动到图像上:</b><br /> <img id="image" src="/i/eg_bulboff.gif" onmouseover="moveover()" onmouseout="moveback()" /> </body> </html>