2007年12月10日 星期一

滑鼠移過表格換顏色


方式一:
onMouseOver="this.style.backgroundColor=\'#cccccc\'" onMouseOut="this.style.backgroundColor=''"

方式二:
//function 放在head跟body之間


onMouseOver="change_color(this,'顏色')" onMouseOut="change_color(this,'')" //寫在 td or tr上面