Need rollover effect

They have: 88 posts

Joined: Feb 2004

I need a rollover effect that changes the background AND the font when the mouse goes over the cell, thanks!

They have: 88 posts

Joined: Feb 2004

Doesn't work, font is originally black. Thanks anyways.

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

icerider wrote: Doesn't work, font is originally black. Thanks anyways.

...the code that I gave you uses images...

If you want to make it in CSS then follow this link:
http://chengeu.krayup.com/index.php?page=css_tips

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

For the table cells, JavaScript will do it cross-browser, CSS will do it everywhere but IE.

So, use JavaScript for the table cells (background) and the a:hover (CSS) for the text.

He has: 2 posts

Joined: Feb 2004

Are you talking about changing text? Or simply rollover images...?

They have: 88 posts

Joined: Feb 2004

not images, just the text and background.

They have: 5,633 posts

Joined: Jan 1970

cellID.bgColor=ffffff; cellID.color=0cc0ff; should work in IE

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

http://www.xs4all.nl/~peterned/csshover.html here you go, CSS with some "make IE work sensibly" hacks.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.