<style type="text/css">
<!--
.STYLE1 {
font-size: 24px;
font-weight: bold;
}
.STYLE2 {font-size: 36px}
-->
.mouseOut {
color: #000000;
}
.mouseOver {
color: RED;
}
.mouseOut1 {
background: #708090;
color: #FFFAFA;
}
.mouseOver1 {
background: #F3F3FA;
color: #000000;
}
</style>
background: #F3F3FA;
color: #000000;
}
</style>
cell.onmouseout = function() {this.className='mouseOver1';};
cell.onmouseover = function() {this.className='mouseOut1';};
cell.onmouseover = function() {this.className='mouseOut1';};
用样式表配合,javascript进行操作,非常的容易!