Use style tags (css)
if(this > that){
document.forms.formname.textname.style.backgroundColor = 'red';
document.forms.formname.textname.style.color = 'white';
}
I'm pretty sure style.backgroundColor works on NS and IE.
_____________________________
steve oliver
senior internet developer
atnet solutions, inc.
http://www.atnetsolutions.com
-----Original Message-----
From: Brian Scandale [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 24, 2002 6:30 PM
To: CF-Talk
Subject: dynamic <input text/background color
I have some forms where javascript is used to sum some user input text
values and put the summation into one of the forms input text fields.
When the sum exceeds some threshold I want the sum to appear as RED text
-- or better yet RED background and WHITE text.
I've seen this done with javascript but for the life of me cannot find
an example.
Anyone know how this is done?
Or remembers a site where it is done?
thanks,
Brian
______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists