Du vill alltså inte ha med onmouseover-attributet ö.h.t (ej onmouseover="f(...)" heller)? Då kan du sätta ett id på <tr> och använda getElementById:
function initTRs(){
// id på de element funktionen skall gälla för
var ids = ["tr1"],
len = ids.length;
while (len--){
var elm = document.getElementById(ids[len]);
elm.onmouseover = function(){
this.style.backgroundColor = "#d3def8";
}
elm.onmouseout = function(){
this.style.backgroundColor = "[i]färgkod[/i]";
}
}
}
window.onload = function(){
initTRs();
}
<tr id="tr1"...