changing color
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   John_Zukowski
Posted On:   Sunday, May 13, 2001 10:31 PM

How can I dynamically change the background color of a selected/highlighted table or cell by clicking on a button using JavaScript?

Re: changing color

Posted By:   Luigi_Viggiano  
Posted On:   Monday, May 14, 2001 07:43 AM

Try this code:








onClick="setTableBG('red')">
onClick="setColumnBG('green')">
onClick="resetBG()">








Column1

Column2



Re: changing color

Posted By:   Luigi_Viggiano  
Posted On:   Monday, May 14, 2001 05:42 AM

If you would accept also a VBScript, this code works with IE4/IE5.

It displays 3 scrollbars in a table and changing them will result in changing background of the table.






The Activated Colour Wizard











CLASSID="CLSID:DFD181E0-5E2F-11CE-A449-00AA004A803D"
CODEBASE="http://activex.microsoft.com/controls/mspert10.cab">




CLASSID="CLSID:DFD181E0-5E2F-11CE-A449-00AA004A803D"
CODEBASE="http://activex.microsoft.com/controls/mspert10.cab">




CLASSID="CLSID:DFD181E0-5E2F-11CE-A449-00AA004A803D"
CODEBASE="http://activex.microsoft.com/controls/mspert10.cab">




CLASSID="CLSID:978C9E23-D4B0-11CE-BF2D-00AA003F40D0"
CODEBASE="http://activex.microsoft.com/controls/mspert10.cab">












About | Sitemap | Contact