Hi, i'd like to know how can i customize a login box. I want it to change it's background color when a user clicks on it in order to type his nickname. Thanks!
You'd need to use javascript to listen for the click event on the input box and then change the CSS class of the box accordingly.
I've managed to change the background color of the input's background with the onClick function. But how can i revert the change? I mean what function do i use for the color to change back after the user clicks on something else? LATER EDIT: I've managed to do what i wanted. Here's the solution: onfocus="javascript:this.className='clicked_style';" onblur="javascript:this.className='initial_style';"