Previous Thread
Next Thread
Print Thread
Rate Thread
#109922 09/08/2004 11:18 AM
Joined: Sep 2004
Posts: 4
Junior Member
Junior Member
Offline
Joined: Sep 2004
Posts: 4
Hey there...

can anyone tell me if there is an option to do the following:



without using inner*HTML???

Sponsored Links
#109923 09/08/2004 11:59 AM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
why not just do ?

#109924 09/08/2004 12:10 PM
Joined: Sep 2004
Posts: 4
Junior Member
Junior Member
Offline
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.

#109925 09/08/2004 1:18 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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

#109926 09/08/2004 2:37 PM
Joined: Sep 2004
Posts: 4
Junior Member
Junior Member
Offline
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 :-)

Sponsored Links
#109927 09/08/2004 3:24 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Code
<input style="background-image: url('/password.gif');"
type="text" onfocus="this.style.background-image='';" />
then have an image that says Password as the background.

#109928 09/08/2004 4:11 PM
Joined: Sep 2004
Posts: 4
Junior Member
Junior Member
Offline
Joined: Sep 2004
Posts: 4
Nice! ... cool mate ...
didn't see that loophole ... thx!


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)