Two different colors and fonts in the same textarea
Posted on 2007-10-11
Im trying to print out an dynamic text that I have combined from two var.
var text1 = "text number 1";
var text2 = "text number 2";
var combined = text1 + text2;
t.icon.testText.text = combined;
Now I want to set text1 to have one font size and color and text2 another.
Is it possible to do something like var combined = text1 + "<span style='color:#cccccc'> " + text2 +"</span>";
I don't thinks
The whole thing is going into a textarea that I don't at the moment put in by code. But i would like that but when I tried it did not work and the text was distorted when I was animating it.