EDIT: I saw that you updated your post, so please clarify: ASP creates an HTML input element (correct me if I am wrong) and you can always create it with :focus selector in CSS, there is no need for Javascript, but also add input.textbox:active to catch some IE buggy ...
input.textbox:focus, input.textbox:active { }
Judging by your inserted code instead
.input_text:focus, input.input_text_focus { border-color:#646464; background-color:#ffffc0; }
using
input.textbox:focus, input.input_text_focus { ... }
Or why do you suddenly use the input_text class when you have input.textbox by hand? Your two selectors do not match ...
source share