改变背景图像
- <html>
- <head>
- <script type="text/javascript">
- function bgChange(bg)
- {
- document.body.background=bg
- }
- </script>
- </head>
- <body>
- <b>请把鼠标移动到这些图片上,背景会发生变化:</b>
- <table width="300" height="100">
- <tr>
- <td onmouseover="bgChange('/i/eg_bg_03.gif')"
- background="/i/eg_bg_03.gif">
- </td>
- <td onmouseover="bgChange('/i/eg_bg_04.gif')"
- background="/i/eg_bg_04.gif">
- </td>
- <td onmouseover="bgChange('/i/eg_bg_06.gif')"
- background="/i/eg_bg_06.gif">
- </td>
- </tr>
- </table>
- </body>
- </html>