codice:
<input type="text" onfocus="this.style.backgroundColor='#ccc'; onblur="this.style.backgroundColor='#fff'; ... />
prova così.

ciao