Change border color of table for current row only

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ismailc
    New Member
    • Sep 2006
    • 200

    Change border color of table for current row only

    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.
    Code:
     <tr class="tbDetailNew">
       <td width="8%">*</td>
       <td colspan="6">
          <table id="test" style="border:none; backgound-color:blue;" width='100%'>
            <tr>
            <td onmousemove="style.backgroundColor = 'white';"document.getElementById('test').style.backgroundColor = 'white';">
    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.
    Last edited by numberwhun; Oct 21 '08, 06:22 PM. Reason: Please use code tags
  • numberwhun
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    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 )

    Comment

    • ismailc
      New Member
      • Sep 2006
      • 200

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

      I forgot - apologies

      Comment

      Working...