Yes, you can change a CSS style by using Javascript, I cant remember off the top of my head exactly how but it can be done by referencing the objects style (or BG) and colour.
item.style.color='#4d4d4d'; and then asking it to change it on mouseover/mouseout..... onMouseOver="colourChange(this,'009933'); onMouseOut="colourChange(this,'666666');" where colourChange is your function for manipulation... Neil Clark Team Macromedia http://www.macromedia.com/go/team Announcing Macromedia MX!! http://www.macromedia.com/software/trial/. -----Original Message----- From: Dave Carabetta [mailto:[EMAIL PROTECTED]] Sent: 20 May 2002 14:01 To: CF-Talk Subject: Slightly OT: Change a stylsheet class via JavaScript? How can I programmatically change a stylesheet class via JavaScript? I'd like to change the background of a text box from white to red if some form validation fails. I've seen it done before, but haven't been able to track down the code to do it. Thanks, Dave. ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists