PDA

View Full Version : Highlight Table Cells Script



TrueFangz
06-21-2006, 05:47 PM
I have a question about the script located here: http://www.dynamicdrive.com/dynamicindex11/highlighttable.htm

Is there a way to use an image for the rollover effect instead of plain colors?

I tried experimenting a little, but I had no luck.
I would like one background image to be shown by default, then when you mouse over the cell of a table, it will change the background image to a different image untill you mouse out.

Any help would be highly appreciated.

Regards,

TrueFangz

TrueFangz
07-05-2006, 05:55 PM
Anyone....

Anyone....

Beuller?

I still haven't figured this oune out yet. Can anyone help?

Thanx!

Twey
07-05-2006, 07:12 PM
Change this line:
source.style.backgroundColor=highlightcolorTo this:
source.style.backgroundImage='url(' + highlightcolor + ')';Then, pass the URL of the image instead of the colour.

As an aside... no offence intended here, DD, but some of these scripts could do with a rewrite. Also, unpleasant things happen if the mouse moves out of the browser window without exiting the cell first, in FX1.5.0.4.

TrueFangz
07-05-2006, 09:42 PM
Cool, Thank you very much, It worked!!!