java script mouse overlay issue

amrod's picture

They have: 26 posts

Joined: Jan 2004

I need to have a mouse overlay that changes a cell () from grey to blue. is this posible with out useing an image and just changing the cell background color?
The url is this:
http://www.hostultra.com/~Xweb/xwebnew65327/
I did it with images but it loads to slow so i want to do it with just java script. also i want it to work with netsacape/mozilla ect.

He has: 1,380 posts

Joined: Feb 2002

I just went there, and there are no images at all.

Anyways, you can do this "rollover" with CSS...http://www.alistapart.com/articles/rollovers/

That should help.

amrod's picture

They have: 26 posts

Joined: Jan 2004

sorry my web host went down... mabe it will be back up soon. ill check out that site:-)

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

I created a piece of JavaScript that will do what I think you are talking about - it is generic so will work for (most) HTML elements.

He has: 1,380 posts

Joined: Feb 2002

But why use javascript, when you can use simple css that doesn't have any load time at all?

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

Yes, your right but on some browsers i.e. IE ( Sticking out tongue ) they don't support the :hover Psudo class on TDs or TRs so you have to use Javascript to get the same effect. For the best effect, use both Javascript and CSS.

He has: 1,380 posts

Joined: Feb 2002

Alrighy then.

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.