php forum
php mysql forum
php mysql smarty
 
Topic Options
#109922 - 09/08/04 11:18 AM change input type
khadgar Offline
Junior Member

Registered: 09/08/04
Posts: 4
Hey there...

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

<in*put type="text" on*Focus="this.type='password';">

without using inner*HTML???

Top
#109923 - 09/08/04 11:59 AM Re: change input type
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
why not just do <input type="password" /> ?

Top
#109924 - 09/08/04 12:10 PM Re: change input type
khadgar Offline
Junior Member

Registered: 09/08/04
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.

Top
#109925 - 09/08/04 01:18 PM Re: change input type
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
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

Top
#109926 - 09/08/04 02:37 PM Re: change input type
khadgar Offline
Junior Member

Registered: 09/08/04
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 :-)

Top
#109927 - 09/08/04 03:24 PM Re: change input type
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
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.

Top
#109928 - 09/08/04 04:11 PM Re: change input type
khadgar Offline
Junior Member

Registered: 09/08/04
Posts: 4
Nice! ... cool mate ...
didn't see that loophole ... thx!

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks