Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating Colors in Javascript

Status
Not open for further replies.

tklear

Programmer
Jan 16, 2003
37
US
I want to dynamically set the background color of some of my text fields. I have the code to change the fillcolor:

var f = this.getField("GC");
color.tan = new Array("RGB", 252, 232, 194); -- this won't work!!
f.fillColor = color.tan;

However, I don't know how to create the color I want. I think you can send in an array and set the RGB color but this line doesn't seem to work.

Can anyone help me?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top