Go Back   Ultimate Web Site Drop Down Menu Forum > Web Development > CSS and HTML
Register FAQ Members List Calendar Today's Posts

Reply
Thread Tools Display Modes
Unread 10-21-2008, 06:52 PM
ISMAILC ISMAILC is offline
Member
Join Date: Dec 2007
Posts: 45
  #1  
Question 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.

<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';"do***ent.getElementById('test').style.bac kgroundColor = '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.
Reply With Quote
Unread 10-22-2008, 02:34 PM
Admin
Posts: n/a
  #2  
Default

In the td you want to change, try this...

Code:
<tr onmouseover="this.style.backgroundColor='#ffffff';" onmouseout="this.style.backgroundColor='#eeeeee';">
    <td>Something </td>
    <td>Next column</td>
</tr>
Reply With Quote
Unread 10-22-2008, 03:39 PM
ISMAILC ISMAILC is offline
Member
Join Date: Dec 2007
Posts: 45
  #3  
Default Thanks it works nicely.

Thanks it works nicely.
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 02:14 PM.


Powered by vBulletin® Version 3.0.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.