onBlur problems
Posted: Fri Jul 30, 2010 3:51 pm
Basically, all you need to know is that I have a login box with Username and Password inputs. Each has the same background image, but when I blur Username (click somewhere else on the page ONLY) the Password's background color changes to a crappy yellow background. This doesn't happen if I go directly from the Username to the Password textbox. I've tried lots of different things. What I currently have is this :
Also, instead of
I've tried
Not sure why it still doesn't keep the normal background image when I blur the Username textbox.. any ideas?
Code: Select all
function change(id) {
identity=document.getElementById(id);
identity.style.backgroundImage='http://addicted.servebbs.com/maplereflex2/webroot/images/login_input.png';
}
Code: Select all
identity.style.backgroundImage='http://addicted.servebbs.com/maplereflex2/webroot/images/login_input.png'; Code: Select all
function change(id, newClass) {
identity=document.getElementById(id);
identity.className(newClass);