![]() |
input field color help
Hi, i found a website that there input field is colored & brightens once u click on the field. How do i do that? Here's my input field code
Code:
<input name="name" value="Server Name" /><br><input name="ip" value="Server IP" /><br><input name="port" value="Server Port" /> |
First added css to get a back ground color. Then added an ID so the back ground color knows what to color. Then added onfocus, it could have been an onclick, to change the color via a javascript command. I only added it to the first input.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| All times are GMT +1. The time now is 03:55 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.