maybe you can try like this.

<SCRIPT language=javascript>
<!--
function changebk(obj, new_color)

 obj.style.backgroundColor=new_color
}
// -->
</SCRIPT>

<input type="text" name="test" onfocus="changebk(this, '#FFFFFF')"
onblur="changebk(this, '#EAF7ED')">

----- Original Message -----
From: "Kuminda Chandimith" <[EMAIL PROTECTED]>
To: "ActiveServerPages" <[EMAIL PROTECTED]>
Sent: Wednesday, August 21, 2002 19:19 PM
Subject: semi OT: Style for Disabled Inputs box


> Hi All
>
> We have a set of forms which we used to Add, modify and View  records.
Based
> on the operations mode we are controlling the way each form is Displayed.
>
> When it comes to View mode we use a JavaScript to disable all the fields.
> Everything works fine except that customer complains that all the content
in
> the input fields not easy to view because of the grey text.
>
> One option I have to overcome this is to re-do all the pages to display
> simple Text instead of the greyed Input. Which is not a very attractive
> thing considering we have close to 50 pages that need this adjustment.
>
> So I am thinking whether its possible to set the Colours of a disabled
input
> using java script or CSS. (A tag like HOver: where the display changes
based
> on the State of The Input Item.). If so can any one of you advise me how
to
> do the same.
>
> Best regards
>
> Kuminda
>
>
>
> Kuminda Chandimith
> Sr. Technical Consultant
> Ducont.com FZ-LLC
> Tel:  + 971-4-3913000 Ext 237
> Fax: +971-4-3913001
> http://www.ducont.com
>
> ---
> You are currently subscribed to activeserverpages as:
[EMAIL PROTECTED]
> To unsubscribe send a blank email to
%%email.unsub%%
>


---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to