代码示例:(标识:dhtm_image_bg)
<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('/static/demo/images/eg_bg_03.gif')" 
      background="/static/demo/images/eg_bg_03.gif">
  </td>
  <td onmouseover="bgChange('/static/demo/images/eg_bg_04.gif')" 
      background="/static/demo/images/eg_bg_04.gif">
  </td>
  <td onmouseover="bgChange('/static/demo/images/eg_bg_06.gif')" 
      background="/static/demo/images/eg_bg_06.gif">
  </td>
</tr>
</table>

</body>
</html>
运行结果: