Tema: tabulador
Ver Mensaje Individual
  #5 (permalink)  
Antiguo 24/12/2003, 03:46
Avatar de KarlanKas
KarlanKas
Moderador extraterrestre
 
Fecha de Ingreso: diciembre-2001
Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 22 años, 4 meses
Puntos: 61

Si la caja tiene un contenido concreto, como por ejemplo cuando se pide el número de una cuenta corriente, aquí tienes un ejemplo:

Código PHP:
<html>
<
head>

    <
style>
    *{
font:normal 10px/10px verdana;}
    
input{border:solid 1px black;}
    </
style>
</
head>

<
body>
<
form>
Número de Cuenta: <input 
type
="text" 
name="entidad" 
id="entidad" value="" 
maxlength="4" 
size="4" 
onkeyup="if(this.value.length==4){document.forms[0].sucursal.focus();}"
>
<
input 
type
="text" 
name="sucursal" 
id="sucursal" value="" 
maxlength="4" 
size="4" 
onkeyup="if(this.value.length==4){document.forms[0].dc.focus();}"
>
<
input 
type
="text" 
name="dc" 
id="dc" value="" 
maxlength="2" 
size="2" 
onkeyup="if(this.value.length==2){document.forms[0].ncuenta.focus();}"
>
<
input 
type
="text" 
name="ncuenta" 
id="ncuenta" value="" 
maxlength="10" 
size="10" 
>
</
form>


</
body>
</
html
__________________
Cómo escribir

No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia.