function hoverRows(){
if (document.all && document.getElementById)
{ navRoot = document.getElementById('tableID');
// Get a reference to the TBODY element
tbody = navRoot.childNodes[0];
for (i = 0; i < tbody.childNodes.length; i++)
{
node = tbody.childNodes[i];
if (node.nodeName == 'TR')
{
node.onmouseover=function()
{this.className += ' rowhover';}
node.onmouseout=function()
{this.className = this.className.replace('rowhover', '');}
}
}
}
} |