Would it not be easier to add a class to the table row and add a bit of css like this
<style type="text/css">
.roweffect {
color: #999;
}
.roweffect:hover {
cursor: default;
cursor: pointer;
color: #FFF;
}
</style>
Very simple but effective and cross browser compatible, I have also added the cursor option but you could always remove that if required.