bgcolor是HTML,bgColor是JScript,backgroundColor是javascript
bgcolor—-静态不变的背景色
this.bgColor—-动态变化的背景色
bgcolor和bgColor代码应用范例:
<table width="200" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td
bgcolor="#FF6699"
onMouseOver="this.bgColor='#FF99CC'"
onMouseOut="this.bgColor='#ff6699'">
</td><!-- onMouseOver="this.bgColor 和 onMouseOut="this.bgColor 这两处的bgColor必须大写C,否则运行不了 -->
</tr>
</table>
backgroundColor代码应用范例:
<table width="200" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td bgcolor="#FF6699"
onMouseOver="this.style.backgroundColor='#FF99CC'"
onMouseOut="this.style.backgroundColor='#ff6699'">
</td>
</tr>
</table>