<div class="codetitle"> <span><a style="CURSOR: pointer" data="43740" class="copybut" id="copybut43740" onclick="doCopy('code43740')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code43740"> <br>//设置选中的行样式。 <br>function SetSelectTrClass(seltr, selclass, unselclass) { <br>var thetable = seltr.parentElement; <br>//i从1开始是因为列名的样式不变 <br>for (var i = 1; i var tr = thetable.rows[i]; <br>tr.className = unselclass; <br>} <br>seltr.className = selclass; <br>} <br> </div>