April 13, 2011

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
Personal Category: Uncategorized Articles Topic: learning / education / linguistic
[Trackback URL]

Post A Comment









Yes No



Please input the magic number:

( Prevent the annoy garbage messages )
( What if you cannot see the numbers? )
Please input the magic number

誰來收藏
Loading ...
unlog_NVPO 0