![sonriente](http://static.forosdelweb.com/fdwtheme/images/smilies/smile.png)
Gracias infinitas a todos y espero vuestra contestación
| |||
como hacer un cuadro de numeros y letras para introducir password ![]() Gracias infinitas a todos y espero vuestra contestación |
| |||
Cierto! vas bien, Saruman, esa es la idea, ¿sabras de algun sitio o alguien que tenga algo iniciado? pues si te digo la verdad no se por donde empezar, por ejemplo, corrigeme si digo una burrada, seria dibujar cada tecla del teclado como una imagen independiente y segun el onclick del raton en la imagen introducirla en una variable e irle sumando el resto haste tener el total y despues comprobar si es correcta. ¿OK? Gracias de nuevo |
| |||
para Leoj90: Por ejemplo; aunque no es tan bueno como otros, este: https://oi.cajamadrid.es/CajaMadrid/...oi/Login/login si entras al poner el raton encima del campo clave y hacer click se despliega el teclado numérico. Gracias otra vez |
| ||||
esto está facilisimo de hacer jomoli. solo una tabla con un par de columnas simulando los botones y un onclick y listo... ![]()
__________________ Saruman One Ring to rule them all, One Ring to find them, One Ring to bring them all and in the darkness bind them. |
| ||||
aqui esta: ta sencillo pero hace lo que pides. solo es de modificarlo y que quede como gustes. saludos Código HTML: <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <script language="javascript"> function MakeString(tecla) { var mytexto = document.getElementById("mytexto"); mytexto.value += String.fromCharCode(tecla); } </script> <body> <input type="text" size="30" id="mytexto"> <script language="javascript"> function drawkeybord() { var html = ""; html += "<table align='center' width='400' border='0' cellspacing='2' cellpadding='2' style='font-family:Arial, Helvetica, sans-serif; font-size:11px;'>\n"; html += "<tr align='center'>\n"; for (i=48; i <= 57; i++) { html += "<td style='border:1px solid #000000; cursor:pointer;' onclick='MakeString(" + i + ")'><strong>" + String.fromCharCode(i) + "</strong></td>\n"; } html += "</tr>\n"; html += "</table>\n"; //alert(html); document.write(html); } drawkeybord(); </script> </body> </html> http://ascii.cl/htmlcodes.htm
__________________ Saruman One Ring to rule them all, One Ring to find them, One Ring to bring them all and in the darkness bind them. |
| |||
Hola todos : en las FAQs de javascript hay uno. Y seguro también en le foro. 79. Mostrar teclado en pantalla |