chump2877
05-30-2006, 07:39 PM
I can;t seem to get the background color of the <tr> element to change color with this script:
<HTML>
<HEAD>
<TITLE></TITLE>
<script type="text/javascript">
<!--
function highlightRow()
{
if (document.getElementById('id23').checked)
{
document.getElementById('row23').bgcolor = '#E2E6A8';
}
}
-->
</script>
</HEAD>
<BODY>
<table>
<tr bgcolor="#CCCCCC" id="row23">
<td width="25px"><input id="id23" name="id[23]" type="checkbox" value="23" onClick="highlightRow();"></td>
<td width="150px">26 May 2006 14:25</td><td width="150px">test <test@data...></td><td width="300px">Re: testingggggggg</td>
<td width="125px">0.80 KB</td>
<td width="50px">23</td></tr>
</table>
</BODY>
</HTML>
Any help is appreciated.
<HTML>
<HEAD>
<TITLE></TITLE>
<script type="text/javascript">
<!--
function highlightRow()
{
if (document.getElementById('id23').checked)
{
document.getElementById('row23').bgcolor = '#E2E6A8';
}
}
-->
</script>
</HEAD>
<BODY>
<table>
<tr bgcolor="#CCCCCC" id="row23">
<td width="25px"><input id="id23" name="id[23]" type="checkbox" value="23" onClick="highlightRow();"></td>
<td width="150px">26 May 2006 14:25</td><td width="150px">test <test@data...></td><td width="300px">Re: testingggggggg</td>
<td width="125px">0.80 KB</td>
<td width="50px">23</td></tr>
</table>
</BODY>
</HTML>
Any help is appreciated.