Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: l0_0laelienPosted on 2005-03-30 at 13:01:04ID: 13665894
Hi, you can change the color of the TR and the font color like this:
Color){ ed') { orgTColor) ;}catch(e) {;}
tColor);}c atch(e){;}
lor){ ; i++) =a_color; on> #c9cc99',' cc3333');" > #c9cc99',' cc3333');" > #c9cc99',' cc3333');" > #c9cc99',' cc3333');" >
<html>
<head>
<script>
var preEl ;
var orgBColor;
var orgTColor;
function HighLightTR(backColor,text
if(typeof(preEl)!='undefin
preEl.bgColor=orgBColor;
try{ChangeTextColor(preEl,
}
var el = event.srcElement;
el = el.parentElement;
orgBColor = el.bgColor;
orgTColor = el.style.color;
el.bgColor=backColor;
try{ChangeTextColor(el,tex
preEl = el;
}
function ChangeTextColor(a_obj,a_co
for (i=0;i<a_obj.cells.length;
a_obj.cells(i).style.color
}
</script>
</head>
<body>
<table border=1 align=center>
<caption>Statistics</capti
<th>Year</th>
<th>Team</th>
<tr onMouseOver="HighLightTR('
<td align=right>1930</td>
<td align=right>Detroit</td>
</tr>
<tr onMouseOver="HighLightTR('
<td align=right>1933</td>
<td align=right>Detroit</td>
</tr>
<tr onMouseOver="HighLightTR('
<td align=right>1934</td>
<td align=right>Detroit</td>
</tr>
<tr onMouseOver="HighLightTR('
<td align=right>1935</td>
<td align=right>Detroit</td>
</tr>
</table>
</body>
</html>
i hope this helps.. regards