Log in

View Full Version : tab data highlighter needed



shute
11-21-2008, 07:14 PM
I need to add some type of mouse over highlighter to my tabular data chart.
I came across http://cssglobe.com/lab/tablecloth/, but it conflicts terribly with other tables in page.
Its exactly what Im looking for though. Anyone come across anything like this that us a little more table friendly? Thanks for any suggestions.

Medyman
11-21-2008, 07:20 PM
Not tested, but this should work:

If you go into tablecloth.js and around line 37, replace

var tables = document.getElementsByTagName("table");
with

var tables = document.getElementsById("your-id");

Then, give your table an id. That should get you what you're after.

shute
11-21-2008, 07:54 PM
thanks, but that didnt work. It also seems to conflict with onLoad="preloadImages();"

I deleted the preload just to see if it would work but it didnt. I hope theres another script out there or an easier way to integrate this.

Medyman
11-21-2008, 08:49 PM
There are some tips in the comments of that CSSGlobe article on Tablecloth. You might want to look at that.

Otherwise, I wrote some crude jQuery to do this the other day. It'll require work to inish. It's posted in this forum somewhere. Search for it.