jeddi
01-27-2009, 02:10 PM
Hello,
I have these following code:
<img class="sptr" src="/picts/separator.gif" width="6" height="20" alt="">
<img class="imgbtn" src="/picts/in_image.gif" width="21" height="20" alt="" onClick="wrapText(document.getElementById('TheTextArea'),'','');">
<span class="select">Size:
<select name="x_size">
<option value = '8' >8 </option>
<option value = '10' >10 </option>
<option value = '12' selected= "selected" >12 </option>
<option value = '14' >14 </option>
<option value = '16' >16 </option>
<option value = '18' >18 </option>
<option value = '20' >20 </option>
<option value = '22' >22 </option>
<option value = '24' >24 </option>
<option value = '26' >26 </option>
<option value = '28' >28 </option>
<option value = '30' >30 </option>
<option value = '32' >32 </option>
<option value = '34' >34 </option>
<option value = '36' >36 </option>
<option value = '38' >38 </option>
</select></span>
As you can see the image has an onclick associated with it.
I want to do a similar thing with the selection of the font-size.
As the action needs to occur after the client has selected the size, probably I will need "on buttun up" ( or is it onRelease ? )
Also which line should the code go on ?
this one <select name="x_size"> ?
or on all the option statements ? :confused:
will appreciate any advice :)
I have these following code:
<img class="sptr" src="/picts/separator.gif" width="6" height="20" alt="">
<img class="imgbtn" src="/picts/in_image.gif" width="21" height="20" alt="" onClick="wrapText(document.getElementById('TheTextArea'),'','');">
<span class="select">Size:
<select name="x_size">
<option value = '8' >8 </option>
<option value = '10' >10 </option>
<option value = '12' selected= "selected" >12 </option>
<option value = '14' >14 </option>
<option value = '16' >16 </option>
<option value = '18' >18 </option>
<option value = '20' >20 </option>
<option value = '22' >22 </option>
<option value = '24' >24 </option>
<option value = '26' >26 </option>
<option value = '28' >28 </option>
<option value = '30' >30 </option>
<option value = '32' >32 </option>
<option value = '34' >34 </option>
<option value = '36' >36 </option>
<option value = '38' >38 </option>
</select></span>
As you can see the image has an onclick associated with it.
I want to do a similar thing with the selection of the font-size.
As the action needs to occur after the client has selected the size, probably I will need "on buttun up" ( or is it onRelease ? )
Also which line should the code go on ?
this one <select name="x_size"> ?
or on all the option statements ? :confused:
will appreciate any advice :)