Ver Mensaje Individual
  #2 (permalink)  
Antiguo 13/09/2007, 06:12
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años
Puntos: 772
Re: Ampliar caja de texto!!!

Hola Trulala de cordoba

A ver si este código te ayuda:

Código PHP:
<html>
<
head>
<
script type="text/javascript">
function 
pulsar(e,obj) {
  if (
e.keyCode==13) {
    
obj.form.txt1.value obj.value;
    
obj.style.display 'none';
  }
}
</script>
</head>
<body>
<form>
<input type="text" name="txt1" onfocus = "txt2.style.display='block'; txt2.value = this.value; txt2.focus()" />
<textarea name="txt2" style="display:none" onkeypress = "return pulsar(event,this)"></textarea>
</form>
</body>
</html> 
Saludos,