<script>
var trs=document.querySelector('tbody').querySelectorAll('tr');
for(var i=0;i<trs.length;i++)
{
trs[i].onmousemove=function()
{
this.className='bg';
}
trs[i].onmouseout=function()
{
this.className='';
}
}
</script>