View Single Post
Old 07-19-07, 12:00 PM   #8
Ngemu Mod
Join Date: Jul 2003
Location: Fresno, CA
Posts: 1,886
Default Re: Table TD Background Color (javascript)

Originally Posted by technoid
Yes, I'm using javascript to modify it. I gave up trying to do a read/modify/write and just created two classes and changed the class using javascript.
Why didn't you use the inline CSS as that worked right? Then you could create a Javascript variable to hold the background color at runtime and modify it any way you like afterwards. You could also try accessing the CSS file directly with javascript and modify the CSS class directly instead of from a HTML element style.
[i7 2600k @4.4ghertz][2x4 GB DDR3 1600][EVGA GTX570 1.280GB SC][EVGA GTX460 physx][Asrock Extreme7 Gen3 Z68][2xSeagate 160 Gb SATA HD raid0][Seagate 250 GB SATA2 HD][Sony Bravia 40' 1080p LCD HDTV][NEC 3520a DVD+-DLw][Windows 7 Ultimate x64][Rosewill 1000w]
fivefeet8 is offline   Reply With Quote