For nutscrape, use .styles instead... -----Original Message----- From: Brian Scandale [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 24, 2002 4:50 PM To: CF-Talk Subject: RE: dynamic <input text/background color
Works great Steve... thanks! FYI: Netscape 4.7 chokes with a javascript error. (frm.TotalRejNeeded.style has no properties) At 06:37 PM 2/24/02 -0500, you wrote: >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 > > ______________________________________________________________________ Why Share? Dedicated Win 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=coldfusionc 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