Ver Mensaje Individual
  #2 (permalink)  
Antiguo 04/07/2013, 23:32
Avatar de memoadian
memoadian
Colaborador
 
Fecha de Ingreso: junio-2009
Ubicación: <?php echo 'México'?>
Mensajes: 3.696
Antigüedad: 14 años, 10 meses
Puntos: 641
Respuesta: ¿Como crear un tipo de textbox Password como el que tiene Win 8 al iniciar

pues podrias hacer lo siguiente

Código HTML:
Ver original
  1. <!DOCTYPE html>
  2. <!--[if IE 8]><html class="no-js lt-ie9" lang="en"> <![endif]-->
  3. <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
  4.     <!--======== Basic Page Needs =========-->
  5.  
  6.     <meta charset="utf-8">
  7.     <title>Input</title>
  8.  
  9.     <!--======== Styles =========-->
  10.  
  11.     <style type="text/css">
  12.     span{
  13.         cursor:pointer;
  14.     }
  15.     </style>
  16.  
  17.     <!--======== Scripts =========-->
  18.  
  19.     <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
  20.     <script type="text/javascript">
  21.     $(document).ready(function(){
  22.         $('span').click(function(){
  23.             var password = $('.password').val();
  24.             $('input[type="text"]').val(password);
  25.         });
  26.     });
  27.     </script>
  28. </head>
  29.     <form method="post" action="">
  30.         <input class="password" type="password" value=""/>
  31.         <input type="text" value="">
  32.         <span>Ver contraseña</span>
  33.     </form>
  34. </body>
  35. </html>

solo ingeniate el estilo