<input type="text" style="background:#f00" onfocus="this.style.backgroundColor='#00f'" onblur="this.style.backgroundColor='#f00'" />