Page 1 of 1

css? or javascript? any know...

Posted: Fri Sep 06, 2002 6:52 pm
by m3mn0n
Maybe you have seen it before on a site, when someone hovers the curser over the table row it changes color.

Is this a Cascading style sheet or javascipt?

I doubt it's java but i am not sure if it's possible so i didn't count it out.


If you need an example check out the menu on this site:

http://www.oxyscripts.com

Posted: Fri Sep 06, 2002 7:58 pm
by volka
they use a simple
onmouseout="this.style.background='eeefee'" onmouseover="this.style.background='FFFFFF'"
for those elements that can hover while I like to define one css-class for normal and one for highlite properties and assign them in a function called by onMouseOver/Out.

Posted: Sat Sep 07, 2002 5:55 pm
by m3mn0n
thanks alot!

Posted: Sun Sep 08, 2002 1:07 am
by Takuma
To make it so that if mouseout happens the background color go orinal color. Just do this

Code: Select all

onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#FFFFFF'"