/    Sign up×
Community /Pin to ProfileBookmark

Background Change of an input box thats focused

I have a website I am working on that the customer wants nice text displayed in both the user/pass boxes prior to entering data. So I figured it would be nice to just use background images (as passwords cant have text) and it looked very nice. The issue is when the user selects a username from a dropdown list of previously entered usernames and selects via the mouse it doesn’t fire any events that I can see. The largest issue is they want the username focused, otherwise this would be easy with just onFocus/blur.

Any ideas? I feel after the hours I have put into it that I am missing something very simple. I just want the bg to change when data is in the field but not delayed. FF is giving me the most fits.

Thanks for any help.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@PadonakJul 20.2010 — did you try [B]onchange[/B]?
Copy linkTweet thisAlerts:
@KorJul 21.2010 — Post your code so far. It is not very clear which is your aim...
×

Success!

Help @Xunil spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...