<input type="text" onFocus="javascript: lighten(this);" />
function lighten(field){
field.style.background = '#F4F9FB';
}
should work
----- Original Message -----
From: "Stephen Caudill" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 17, 2003 2:30 PM
Subject: [wdvltalk] Re: JS form field bg change
Bj wrote:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> Try:
>
> <input type="text" onFocus="lighten()" />
>
> (closing quotes added!)
>
> Or better style:
>
> <input type="text" onFocus="javascript: lighten();" />
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
I left the closing quote off when I retyped it, but I didn't have the null
terminator... Put it in and its still not working though. Does the function
look sound?
function lighten(){
this.style.background = '#F4F9FB';
}
Thanks Again,
Stephen Caudill
____ . The WDVL Discussion List from WDVL.COM . ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub
________________ http://www.wdvl.com _______________________
You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to %%email.unsub%%
____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub
________________ http://www.wdvl.com _______________________
You are currently subscribed to wdvltalk as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]