改变图像的位置
- <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>