Ver Mensaje Individual
  #2 (permalink)  
Antiguo 13/06/2003, 17:44
Avatar de Kaopectate
Kaopectate
Colaborador
 
Fecha de Ingreso: diciembre-2001
Ubicación: Curaçao (Antillas Holandesas)
Mensajes: 3.179
Antigüedad: 23 años, 2 meses
Puntos: 38
Hola palidowsky.

Prueba con esto:

Código PHP:
<html>
 <
head>
  <
script language="JavaScript">

   function 
incluye(sVal){
    var 
sText document.frm.txt.value;
    var 
nPos sText.indexOf(sVal);
    if (
nPos == -1)
     
sText += " " sVal;
    else
     
sText sText.substr(0nPos 1) + sText.substr(nPos sVal.lengthsText.length sVal.length);
    
document.frm.txt.value sText;
   }

  
</script>
 </head>
 <body>
  <form name="frm">
   <input type="checkbox" value="Maria" onclick="incluye(this.value)">Maria<br>
   <input type="checkbox" value="Carmen" onclick="incluye(this.value)">Carmen<br>
   <input type="checkbox" value="Beatriz" onclick="incluye(this.value)">Beatriz<br>
   <input type="checkbox" value="Juana" onclick="incluye(this.value)">Juana<br>
   <textarea name="txt"></textarea>
  </form>
 </body>
</html> 
Saludos.