css
.ItemRowHover td {background-color:#ff9900; }
jscript
$('.items').tablesorter();
// these two mouse events work unless the sorting is done,
// as soon as the table is sorted by clicking any of the header columns, these cease working.
$('.items tr').each(function(){
$(this).bind('mouseover', function(){
$(this).addClass('ItemRowHover');
});
});
$('.items tr').each(function(){
$(this).bind('mouseout', function(){
$(this).removeClass('ItemRowHover');
});
});
After sorting the table by any column, the hover jQuery stops working, but works when the page loads the first time and the table is unsorted by clicking any of the headers.