Jonathan,

You might find the code below helpful. It "grays out" in IE and also
effectively disables the fields in both IE and NS. NS doesn't support the
"gray" part unfortunately.

Chris


> Code Begins Here
> ---------------------------
> 
> <html>
> <head>
> <script language="JavaScript">
> <!--
> ie=window.navigator.appName == "Microsoft Internet Explorer"
> var1=true;
> function GotoSubRegion(myval)
>       {
>               if (myval == 'E') {
>               var1=false;
>               document.myform.f1.value='';            
>               document.myform.f2.value='';            
>               document.myform.f3.value='';
>               if(ie) {        
>                       document.myform.f1.style.backgroundColor='#E9E9E9'; 
>                       document.myform.f2.style.backgroundColor='#E9E9E9'; 
>                       document.myform.f3.style.backgroundColor='#E9E9E9'; 
>                       }
>               }
>               else {
>               var1=true;
>               if(ie) {
>                       document.myform.f1.style.backgroundColor='';
> 
>                       document.myform.f2.style.backgroundColor=''; 
>                       document.myform.f3.style.backgroundColor=''; 
>                       }
>               }
>       }
> //-->
> </script>
> </head><body>
> <form name="myform" action="" method="post">
> <select class="ManageWidth" name="cdinstype"
> onChange="GotoSubRegion(this[this.selectedIndex].value)">
> <option value="0"></option>
> <option value="E">Employee</option>
> <option value="V">Vendor</option></select><br>
> <input type="text" name="f1" value="" onFocus="if(!var1) this.blur()"><br>
> <input type="text" name="f2" value="" onFocus="if(!var1) this.blur()"><br>
> <input type="text" name="f3" value="" onFocus="if(!var1) this.blur()"><br>
> </form>
> </body>
> </html>
> 
> 
> 
> Chris
> ------------------------------------------------------------------
> Chris Lomvardias
> [EMAIL PROTECTED]
> Syscom, Inc.
> 400 E. Pratt Street, Suite 300
> Baltimore, MD 21202
> (410)539-3737 x1722 voice
> (410)539-7302 fax
> [EMAIL PROTECTED] (pager via email)
> http://www.syscom.com/
> ------------------------------------------------------------------
> 
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to