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!

cell color change onmouseout

Status
Not open for further replies.

BostonChowder

Technical User
Sep 8, 2001
8
US
I have a table set up with a background image. When the mouse goes over a cell it changes color and when the mouse goes out the image peeks out again, but only in IE. Netscape changes the color on mouseover, but I can't get it to revert on mouse out.

Oh, I also put in the javascript to make the whole block clickable for the link. That way the user does not need to click the text in case he/she is confused about the mouseover effect.

Here is what is in the table cell tag.
onclick=document.location.href="index.shtml"
onmouseover="this.style.background='#336699'"
onmouseout="this.style.background=''">

Any suggestions?
 
Netscape does not support this (unless 6 or 6.1 does, but at least the prior versions don't).

Anyone else disagree? If so, I would love to see how someone got away with it (rewrote the javascript library? :)).

Chad. ICQ: 54380631
online.dll
 
it might be done using layers, but it would a pain in the @$$ Victor
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top