<script type="text/javascript">
document.body.style.background=bg
<b>请把鼠标移动到正方形上,背景颜色会发生改变!</b>
<table width="300" height="100">
<td onmouseover="bgChange('red')"
onmouseout="bgChange('transparent')"
<td onmouseover="bgChange('blue')"
onmouseout="bgChange('transparent')"
<td onmouseover="bgChange('green')"
onmouseout="bgChange('transparent')"