Ultimate Web Site Drop Down Menu Forum

Ultimate Web Site Drop Down Menu Forum (http://www.udm4.com/forum/index.php)
-   CSS and HTML (http://www.udm4.com/forum/forumdisplay.php?f=8)
-   -   Change border color of table for current row only (http://www.udm4.com/forum/showthread.php?t=2661)

ISMAILC 10-21-2008 05:52 PM

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.

10-22-2008 01:34 PM

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>


ISMAILC 10-22-2008 02:39 PM

Thanks it works nicely.
 
Thanks it works nicely.


All times are GMT. The time now is 06:10 PM.

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