Click to See Complete Forum and Search --> : Change Control: Changing a font's color


glitchgirl
04-26-2006, 09:54 AM
I'm using Macromedia UltraDev, and I'm trying to use the change property so that when members choose a color, it changes the color of the text. Does anyone know how I would go about that, and how I would use the Change Property dialog box in UltraDev. The following things need to be filled in.

Type of Object: INPUT/TEXT;
Name of Object text "Status" in form "form1" (this is what I need to change the color of);
Property (radio button 1) Select: (drop-down box) Value;
(radio button 2) Enter: (text box) I don't know????
New Value (text box): I don't know????

I tried using the "HELP" button, but there are no examples on how to proceed. And I know javascript enough to get by (I'm more VB), but I'm not very good at just whipping it out of my belt lol.

To change the text for example what we are using now is <font color=#FF0000>Text. The reason there are no quotes or </font> is because its updating in a Microsoft Access Database. Although the </font> does work, its just one more thing for users to type.

Thanks in advance!

EDIT: I'm guessing the new value would be for example FF0000 so how to I allow it to change that in the <font color=#color> ?

EDIT: I got it to work but not working properly. What it does is replace the whole text box with just the word FF0000 (when clicking red icon) But the application name (which varies) needs to stay in there, all I need to change is the color which can be found in <font color=#colorcode>.

Compguy Pete
04-27-2006, 12:04 AM
There is a method of using CSS to make it so you can have any number of style changes...

QUick question thou... are you only looking for a small section of text to change or the whole page to change?