Paweł Gałecki wrote on 15 feb 2004 in comp.lang.javas cript:
How can I set a different border color for a table row?
All I found in the MSDN for <TR> was:
Scripting object.borderCo lor [ = sColor ]
but it doesn't work for <TR> though it works for <TD>. I
would like to change color of the border of the entire row in a response
to onMouseover and onMouseout events.
A <tr> has no border, but perhaps this is what you are
looking for:
<script>
function green(x) {x.className="g reen"}
function red(x) {x.className="r ed"}
</script>
<style>
table tr td {font-size:25pt;paddi ng:10px;}
.red td {border:red 5px dotted;}
.green td {border:green 5px dashed;}
</style>
<table>
<tr class="red" onmouseover="gr een(this)" onmouseout="red
(this)">
<td>qwerty uiop</td><td>asdfg hjkl</td></tr>
<tr class="red" onmouseover="gr een(this)" onmouseout="red
(this)">
<td>qwerty uiop</td><td>asdfg hjkl</td></tr>
<tr class="red" onmouseover="gr een(this)" onmouseout="red
(this)">
<td>qwerty uiop</td><td>asdfg hjkl</td></tr>
<tr class="red" onmouseover="gr een(this)" onmouseout="red
(this)">
<td>qwerty uiop</td><td>asdfg hjkl</td></tr>
<tr class="red" onmouseover="gr een(this)" onmouseout="red
(this)">
<td>qwerty uiop</td><td>asdfg hjkl</td></tr>
<tr class="red" onmouseover="gr een(this)" onmouseout="red
(this)">
<td>qwerty uiop</td><td>asdfg hjkl</td></tr>
</table>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)