<html><head>
<script type="text/javascript" language="javascript">
var hiRow = '';
function setHilite(rowID) {
if (rowID == hiRow) return false;
var oldRow = (hiRow == '') ? null:document.getElementById(hiRow).style;
var theRow = document.getElementById(rowID).style;
if (oldRow != null) {oldRow.backgroundColor = '#ffffff'};
theRow.backgroundColor = '#ffff00';
hiRow = rowID;
}
function toggleColor(rowID, how) { // 'how' should be 'on' or 'off'
var theRow = document.getElementById(rowID).style;
if (how == 'on') {
theRow.backgroundColor = '#ff0000';
} else {
theRow.backgroundColor = (rowID == hiRow) ? '#ffff00':'#ffffff';
}
}
</script>
<style type="text/css">
td {cursor: hand;}
</style>
</head>
<body>
<table>
<tr id="row1" onmouseover="toggleColor(this.id,'on');" onmouseout="toggleColor(this.id,'off');" onclick="setHilite(this.id);">
<td>hello</td>
</tr>
<tr id="row2" onmouseover="toggleColor(this.id,'on');" onmouseout="toggleColor(this.id,'off');" onclick="setHilite(this.id);">
<td>good-bye</td>
</tr>
<tr id="row3" onmouseover="toggleColor(this.id,'on');" onmouseout="toggleColor(this.id,'off');" onclick="setHilite(this.id);">
<td>good-bye</td>
</tr>
<tr id="row4" onmouseover="toggleColor(this.id,'on');" onmouseout="toggleColor(this.id,'off');" onclick="setHilite(this.id);">
<td>good-bye</td>
</tr>
<tr id="row5" onmouseover="toggleColor(this.id,'on');" onmouseout="toggleColor(this.id,'off');" onclick="setHilite(this.id);">
<td>good-bye</td>
</tr>
<tr id="row6" onmouseover="toggleColor(this.id,'on');" onmouseout="toggleColor(this.id,'off');" onclick="setHilite(this.id);">
<td>good-bye</td>
</tr>
</table>
</html>