< html > < head > < meta http-equiv ="Content-Type" content ="text/html; charset=gb2312" /> < title > Untitled Document </ title > </ head > < body > < table width ="761" height ="119" border ="1" > < tr onmouseover ='this.style.backgroundColor="#f6f6f6"' onMouseOut ='this.style.backgroundColor=""' > < td > </ td > < td > </ td > < td > </ td > </ tr > < tr onMouseOver ='this.style.backgroundColor="#f6f6f6"' onMouseOut ="this.style.backgroundColor=''" > < td > </ td > < td > </ td > < td > </ td > </ tr > < tr > < td onMouseOver ="this.style.backgroundColor='#f6f6f6'" onMouseOut ="this.style.backgroundColor=''" > </ td > < td onMouseOver ="this.style.backgroundColor='#f6f6f6'" onMouseOut ="this.style.backgroundColor=''" > </ td > < td onMouseOver ="this.style.backgroundColor='#f6f6f6'" onMouseOut ="this.style.backgroundColor=''" > </ td > </ tr > </ table > </ body > </ html > 下面还有一种方法 < tr onMouseOver ='this.bgColor="#f6f6f6"' onMouseOut ="this.bgColor=''" > < td > </ td > < td > </ td > < td > </ td > </ tr >