Java Befehl gesucht +- Sponsor-Board.de (https://www.sponsor-board.de) +-- Forum: Community (/forumdisplay.php?fid=56) +--- Forum: Hilfe (/forumdisplay.php?fid=102) +---- Forum: Scripting (/forumdisplay.php?fid=108) +---- Thema: Java Befehl gesucht (/showthread.php?tid=39398) |
Java Befehl gesucht - Web-Lerner - 02.06.2013 10:09 Hi Leute! Ich hab ein Problem und komm leider nicht weiter. Ich zeige euch mal mein Script: Code: <input type="password" value="Passwort" onblur="if(this.value=='') this.value='Passwort';" onfocus="if(this.value=='Passwort' ) this.value='' ;">
Jedoch, stellt es Passwort nur in *** da, da es ja am Input type liegt. Es soll aber möglich sein, dass Passwort dort steht, und wenn man drauf klickt, dass es verschwindet und Type=password. Verstanden? RE: Java Befehl gesucht - Jkoan - 02.06.2013 10:47 Code: document.getElementById('pw').type='password';
RE: Java Befehl gesucht - Sysix - 02.06.2013 10:51 Code: <input type="password" value="Passwort" onblur="this.type='password'" onfocus="this.type='text'">
RE: Java Befehl gesucht - sic_ - 02.06.2013 10:53 Das wäre dann insgesamt: Code: <input type="text" value="Passwort" onblur="if (this.value == '') this.value = 'Passwort'" onfocus="this.type='password'; if (this.value == 'Passwort' ) this.value = ''">
Tja 66 Points für jeden, würd ich sagen
RE: Java Befehl gesucht - Schwester Wombat - 02.06.2013 11:42 Das ist aber JavaScript und kein Java... |