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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

onMouseOver event

Status
Not open for further replies.

newtoASP

Programmer
Jun 1, 2001
40
US
Can someone tell me why this code does not work?

<tr onMouseOver=this.style.backgroundColor='#ffffdd' onMouseOut=this.style.backgroundColor='#d3d3d3 bgcolor=silver>
<td>....</td></tr>

I get a runtime error stating &quot;Error: Object required: 'this'

Thanks in advance.
 
Try this:

<tr onMouseOver=&quot;this.style.backgroundColor='#ffffdd'&quot; onMouseOut=&quot;this.style.backgroundColor='#d3d3d3'&quot; bgcolor=silver>
<td>....</td></tr>

Rob Marriott
rob@career-connections.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top