Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<td> rollover 2

Status
Not open for further replies.

KolNedra

Programmer
Oct 5, 2001
5
NL
Does anyone know how to change the background color for a <td> tag when i hove my <a href...> tag ?? (that ofcourse is in that <td> tag!) ???
 
Hi,

Is this what yopu mean?

<script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot;>

function highlight(cell)
{
cell.bgColor = '#ffff00';
}

function normal(cell)
{
cell.bgColor = '';
}

</script>

<table border=1 cellpadding=0 cellspacing=0 width=500>
<tr>
<td onmouseover=&quot;highlight(this)&quot; onmouseout=&quot;normal(this)&quot; width=200>
<a href=yourpage.htm>Your Page</a>
</td>
<td width=300>
next cell
</td>
</tr>
</table>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top