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

css onMouseover/onMouseout on tables

Status
Not open for further replies.

safra

Technical User
Jan 24, 2001
319
NL
Hi,

I have a table and want the background color to change when moving over it. I can use onMouseover and onMouseout inside the table tag.

However I want to make it crossbrowser in the easiest way and was wondering if it is possible through css stylesheets.

I tried somethings but didn't work.

Any ideas?

Thanks,
Ron
 
on the most current browsers that should suffice (Is it necessary that it has to be CSS?) if it is then make say a style table.one and give it its attributes
then assign that class to the table. Then make another one table.one:hover and that should fix it. [soapbox]
sleep is good
 
Thanks deecee,

I tested it in NS6 and IE5.5. It doesn't work in IE. In NS it works but only if you are near the table border, it has no effect in inside the table.

I guess I have to go for the onMouseover and onMouseout events.

for IE/Opera: this.style.background or this.style.backgroundColor
for NS: this.bgColor

Does anyone know what to use forAOL, I couldn't find anything about this.

Thanks,
Ron
 
i think its the same as IE/Opera.

because AOL's internal browser is basically IE. "Those who dare to fail miserably can achieve greatly." - Robert F. Kennedy
So true..
 
Thanks!

Does anyone know if it is possible to download just the AOL browser from somewhere without subscribing?

Ron
 
AOL just uses IE (older versions used netscape). "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety."
- Benjamin Franklin, Historical Review of Pennsylvania, 1759.
 
Ok,

I guess it is a waste of time then to check out how the site and particularly the part with the hover effect on tables, appears on the AOL browser.

Thanks,
Ron
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top