Tommahawk
07-31-2010, 03:57 AM
how to change the boring black circles on a password box to something like $$$$ or ооооооо
thanks in advance
thanks in advance
|
||||
strange thing happenedTommahawk 07-31-2010, 03:57 AM how to change the boring black circles on a password box to something like $$$$ or ооооооо thanks in advance djh101 07-31-2010, 06:35 AM I don't think you can. The only time I've ever seen them change is in different web browsers, and that's either just a change in size or sometimes asterisks instead of circles. Tommahawk 07-31-2010, 07:55 AM the strange thing that happened, ealier I was logging into the script and I got love hearts instead of the black dots which is very strange. I did nothing for this to happen when I reloaded the page it was back to normal wildreason 07-31-2010, 10:36 AM You could write a javascript function that changes the keypress behavior. Something like <html> <head> <title>Playground</title> <script type="text/javascript"> var pw = ""; function showPass() { alert(pw); } function maskField(obj,event) { if (obj.value.length == 0) { pw = ""; } if (window.event) { var key = event.keyCode; } else { var key = event.charCode; } if (event.keyCode == 8) { pw = pw.slice(0, -1); obj.value = obj.value.slice(0, -1); } else if (key.toString().length > 0 && key > 33) { char = String.fromCharCode(key); pw = pw + char; obj.value = obj.value + "&"; } return false; } </script> </head> <body> <form action="#" method="get"> Text: <input type="text" id="password" onkeypress="maskField(this,event);return false;"> <br /><br /> <input onclick="showPass();" type="button" value="Show pass"> </form> </html> There are a lot of things you would need to work out but that's at least a place to start. |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum