W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
运行代码
<html> <head> <script type="text/javascript"> function moveleft() { document.getElementById('image').style.position="absolute" document.getElementById('image').style.left="0" } function moveback() { document.getElementById('image').style.position="relative" } </script> </head> <body> <img id="image" src="/i/eg_bulbon.gif" onmouseover="moveleft()" onmouseout="moveback()" /> </body> </html>