PDA

View Full Version : input object help


mgokkaya
02-21-2007, 06:17 AM
is it possible that ;
when the user want to write something to input object it will automaticly change the background color of selected input object while they r typing... and then when they select somethingelse the input object will turn back to the original color...

TJ_Tigger
02-21-2007, 07:58 AM
You can use the On Focus event for that object and when it gains focus then change the background. Then I would probably use the On Key event checking for Tab or the Enter key to change the color back. The alternative to checking for tab or enter is you could use a timer to check where the page focus is currently set and change the color accordingly.

Give the code a shot and if you get stuck the post back with a project or code and we can help out.

HTH
Tigg