Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: changing the background of table cells on mouseOver


Message #1 by "Azinger, Richard" <richard.azinger@p...> on Thu, 16 May 2002 23:13:21 -0500
Hello List,

Suppose I have a table like the one below:

= = = = = = = = = = = = = = = = = = = = = = = 

<table width="500" border="0">
  <tr> 
    <td>Cell1</td>
    <td rowspan="4" align="left" valign="top"> 
      <div align="left">Cell0</div>
    </td>
  </tr>
  <tr> 
    <td>Cell2</td>
  </tr>
  <tr> 
    <td>Cell3</td>
  </tr>
  <tr> 
    <td>Cell4</td>
  </tr>
</table>

= = = = = = = = = = = = = = = = = = = = = = = 

Is there a way that on a mouseover of "<td>Cell1</td>" it would change it's
color to grey (bgcolor="#CCCCCC"). Here is the kicker, Cell2 thru Cell4 have
to be changed to a background color of white. Also, I need for the cells to
stay grey until another cell gets a mouseover event. Mouseout will not work
for me because I want to click on links in "cell0" that change with
whichever cell gets the mouseover event.

Thanks for any help,

Rich

  Return to Index