
May 2nd, 2000, 04:43 AM
|
|
Registered User
|
|
Join Date: Dec 1999
Location: Mainz, RP, Germany
Posts: 5
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Hi,
Okay, I have the follwoing in my html page:
<td nowrap valign="top" width="500"><select name="color" onchange="change(1)">
<option selected value>Select New Color?
<option value="#ffffff">White
<option value="#ff0000">Red
</option>
</select> <input maxlength="7" name="decoy" size="7" value="#000000"></td>
<td nowrap valign="top" width="50" class="1" id="test">
You see that when the option thing is changed it sends a command to a Java script. The script then writes the hex-code into the field right beside it and converts the hex-code into a css-class definition.
Now I want the Class of the id-object "test" to be changed into the class definition.
I want that so that I can let a user select a color and then see the actual color without having to submit the page to a perl script.
uh... anybody understood what I meant?
|