|
|
Joined: Sep 2004
Posts: 4
Junior Member
|
Junior Member
Joined: Sep 2004
Posts: 4 |
Hey there...
can anyone tell me if there is an option to do the following:
without using inner*HTML???
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
|
|
|
|
Joined: Sep 2004
Posts: 4
Junior Member
|
Junior Member
Joined: Sep 2004
Posts: 4 |
I need to put in the value "Type password" and then when on*focus change the type to password, so I get the "dot" character instead of real characters. At the same time I clear the value.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
this could be done with some css, but I'd reccomend just having the text before the password box.
Besides, even with css you'd need javascript. I don't see what you'd use innerHTML for anyway, as this.value would achieve the same thing
|
|
|
|
Joined: Sep 2004
Posts: 4
Junior Member
|
Junior Member
Joined: Sep 2004
Posts: 4 |
That's what I'm hoping for ... that CSS could do this ... but I don't know how ... the problem is taht I don't have enough space for writing it before the password box ... so if you have a solution I would be pleased :-)
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
<input style="background-image: url('/password.gif');" type="text" onfocus="this.style.background-image='';" /> then have an image that says Password as the background.
|
|
|
|
Joined: Sep 2004
Posts: 4
Junior Member
|
Junior Member
Joined: Sep 2004
Posts: 4 |
Nice! ... cool mate ... didn't see that loophole ... thx!
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 69
Joined: January 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|