<tr οnclick=selectRow(this)>
前台js
var currentActiveRow;
//选中行
function selectRow(obj)
{
if(currentActiveRow)
currentActiveRow.style.backgroundColor="";
currentActiveRow=obj;
currentActiveRow.style.backgroundColor="#516b9f";
}