<input type="text" name="foo" onfocus="doStyle(this, 'on');"
onblur="doStyle(this, 'off');" />

<script type="text/javascript">
     function doStyle(obj, onoff) {
          if (onoff == "on") {
               obj.style.backgroundColor = "yellow";
          } else {
               obj.style.backgroundColor = "white";
          }
     }
</script>

On 3/9/06, Rick Root <[EMAIL PROTECTED]> wrote:
> Is it possible to style text inputs in HTML forms such that they look
> one way when they have the focus and another way when they don't?
>
> Rick
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234848
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to