Connecting Tech Pros Worldwide Forums | Help | Site Map

Change border color of table for current row only

Familiar Sight
 
Join Date: Sep 2006
Posts: 142
#1: Oct 21 '08
Hi, need help please!

I have a table within a table, the background color of table is blue to match the background color of my <td>.

but now i want onmouseover to change the background color of the <td> which i do but the row in between the colommns have a blue color.
Expand|Select|Wrap|Line Numbers
  1.  <tr class="tbDetailNew">
  2.    <td width="8%">*</td>
  3.    <td colspan="6">
  4.       <table id="test" style="border:none; backgound-color:blue;" width='100%'>
  5.         <tr>
  6.         <td onmousemove="style.backgroundColor = 'white';"document.getElementById('test').style.backgroundColor = 'white';">
  7.  
i get it to change the table backgound color but then it changes for all the rows within the table - i just want to the row i'm on.

Please Assist.

numberwhun's Avatar
Site Moderator
 
Join Date: May 2007
Location: New Hampshire
Posts: 2,572
#2: Oct 21 '08

re: Change border color of table for current row only


ismailc -

After having posted to the forums 65 times, you are highly expected to know how to use code tags when posting code into the forums. I would issue a nice warning, but you have a lot of posts to be not using them. This is your formal warning.... please use code tags whenever you post code in the forums.

Regards,

Jeff ( Moderator )
Familiar Sight
 
Join Date: Sep 2006
Posts: 142
#3: Oct 22 '08

re: Change border color of table for current row only


Apologies - I just posted another question before reading your reply.

I forgot - apologies
Reply