custom form field elements
Posted: Sat Dec 01, 2007 6:09 am
Can anyone tell me how to get customized form field elements... like custom Checkbox i.e a blue checkbox o reddish radio button...
SolusVM VPS management, cPanel/WHM/Fantastico, webdesigning help and discussion forums. Get help from co-webmasters and professionals!
https://smokyhosts.com/forums/
Code: Select all
void changeColour ()
{
****.form1.redcheckbox. src='redcheckbox-checked.jpg'
}
Have you tried CSS ? that might be able to do it..jasondsouza wrote:Can anyone tell me how to get customized form field elements... like custom Checkbox i.e a blue checkbox o reddish radio button...
Hi, bro. I only know a thing or two about <input type="text"> (text fields - form)jasondsouza wrote:Can anyone tell me how to get customized form field elements... like custom Checkbox i.e a blue checkbox o reddish radio button...
And for displaying the form, enter this html code:input[type="text"].rounded_inputs {
font-family: Verdana;
border: 1px solid #B3B3B3;
border-bottom-left-radius: 6px 6px;
border-bottom-right-radius: 6px 6px;
border-top-left-radius: 6px 6px;
border-top-right-radius: 6px 6px;
color: #999;
height: 19px;
padding: 2px;
}
Hope this helps.input type="text" name="category2" size="25" class="rounded_inputs" value="Your Name" onBlur="if (this.value == '') {this.value = 'Your Name';}" onFocus="if (this.value == 'Your Name') {this.value = '';}"></td>
</tr>
<tr>
<td><input type="text" name="category3" size="25" id="GRCategory3" class="rounded_inputs" value="Your E-mail" onBlur="if (this.value == '') {this.value = 'Your E-mail';}" onFocus="if (this.value == 'Your E-mail') {this.value = '';}"></td>