<script language = "javascript">
startHighlight = function()
{
if (document.all && document.getElementById)
{
navRoot = document.getElementById("myGrid");
// 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 = "over";
}
node.onmouseout=function()
{
this.className = this.className.replace("over", "");
}
}
}
}
}
window.onload = startHighlight;
</script>
<style>
tr:hover, tr.over { background-color: #ffccff; }
</style>
|