PDA

View Full Version : table cell hover over??


RetroGamer1991
09-18-2001, 01:00 AM
How can I make a table cell change colors when the user hovers over it? I'd like to know how to do it 3 different ways.
1)theres a link in the table cell
2)theres only a image in the cell
3)theres only a NBSP tag in the cell

thanks for helping.

petervazed
09-18-2001, 01:39 PM
This way:

<body bgcolor="#ffffff" text="#b41b32" link="#0000ff" vlink="#800080" alink="#ff0000" Marginwidth=0 marginheight=0 leftmargin=0 topmargin=0 BACKGROUND="#" >
<a name="link"></a>
<br><table width="90%" border="0" cellspacing="0" cellpadding="0" bgcolor="#c1c79a" bordercolor="#408080" align="center" onmouseover="this.style.background='#c0cFcF'" onmouseout="this.style.background='#73b5a0'">
<tr>
<!-- Row 1 Column 1 -->
<td onmouseover="this.style.background='#00FFFF'" onmouseout="this.style.background='#FFff00'">
1<p>
&nbsp;
<p>
&nbsp;
</td>
<!-- Row 1 Column 2 -->
<td >
2<p>
LINK<p>

<A HREF="Photographsnl.htm" TARGET="hoofdscherm"><FONT FACE="Arial" SIZE=2 COLOR="#ffffff" onmouseover="this.style.color='#00FFFF'" onmouseout="this.style.color='#FFFFFF'"><B>Joop's Foto's</A></FONT><br>

</td>
<!-- Row 1 Column 3 -->
<td >
3
</td>
</tr>
</table>

<center><a href="#link"> go up </a>
</center>
</body>