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

Problem with OnClick Event

Status
Not open for further replies.

Ciarrai

Technical User
Jun 27, 2003
17
US
Hi,
I am using an external stylesheet to control the background image on mouseover and mouseout events. Is there anyway I can change the background image on an onClick event?? Also will I lose the effect of mouseOver if i put code in?

Here is the code:

<table width="115px">

<tr class = "backgroundPic" onmouseover="this.className='backgroundPicChg'" onmouseout="this.className='backgroundPic'" >
<td height = "40" onclick="parent.main.location.href ='home.asp'" ><a style="display:block";>Home</a></td></tr>
<%
rsAddLinks.MoveNext
Loop
%>
</table>

I'd be grateful for any help on this.
Thank You,
Ciarrai
 
forum215 - ASP
forum216 - Javascript

~*Gwar3k1*~
&quot;To the pressure, everything's just like: an illusion. I'll be losing you before long...&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top