Ver Mensaje Individual
  #2 (permalink)  
Antiguo 21/12/2005, 12:10
taar
 
Fecha de Ingreso: diciembre-2001
Ubicación: Asuncion
Mensajes: 143
Antigüedad: 22 años, 3 meses
Puntos: 1
Prueba esto y cuentanos que tal te funciona
Código PHP:
<html>
<
head>
<
title>New document</title>
<
script type="text/javascript">
function 
ResizeTextArea(txtBox) {
    
nCols txtBox.cols;
    
sVal txtBox.value;
    
nVal sVal.length;
    
nRowCnt 1;
    for (
i=0;i<nVal;i++) { 
        if (
sVal.charAt(i).charCodeAt(0) == 13) { 
            
nRowCnt +=1
        } 
    }
    if (
nRowCnt < (nVal nCols)) { 
        
nRowCnt + (nVal nCols); 
    }
    
txtBox.rows nRowCnt;
}
</script>
</head>
<body>
<form name=frmSubmit method=post >
    <textarea 
        name=txtTest 
        cols=50 
        rows=1 
        style='overflow:hidden' 
        onkeypress="ResizeTextArea(this);">
    </textarea>
</form>
</body>
</html>