JavaScript更改Table底色
可使用在用表格製成的選單上。
<script language="javascript">
function change()
{
document.getElementById('item').rows[0].style.backgroundColor='#ff0000';
}
function back()
{
document.getElementById('item').rows[0].style.backgroundColor='#ffffff';
}
</script>
<table id="item" border="1" onmouseover="change()" onmouseout="back()"> <tr><td>選項一</td></tr></table>
Today's Visitors: 0 Total Visitors: 1
