|   
			 
			
			
			
			
			
			
		     
			
				25/01/2009, 20:27
			
			
			     |  
      |    |    |    Fecha de Ingreso: noviembre-2008  
						Mensajes: 279
					  Antigüedad: 17 años Puntos: 0     |        |  
  |      Respuesta: Cómo hago: Al Selecionar CheckBox sumar cantidad ??        ya esto fue discutido anteriormente    Cita:  <html>  
 <head>    
 </head> 
 <body>  
 <script type="text/JavaScript">  
function Suma(isChecked, myValue) 
{ 
	tot = parseInt(document.form1.total.value); 
	myValue = parseInt(myValue); 
	if (isChecked) document.form1.total.value = tot + myValue; 
	else document.form1.total.value = tot - myValue; 
} 
</script>       
       <form name="form1" action="procesa.php" method="POST">  
         <div>  
           usted tiene un total de 175 puntos para escoger opciones de este  
			menú, recuerde ahorrar lara tener mas puntos adelante 
			<p><input type="checkbox" value="30" name="Check1" onclick=" Suma(this.checked,this.value)" >opción numero 1 por 30 puntos</p> 
			<p><input type="checkbox" value="40" name="Check2" onclick=" Suma(this.checked,this.value)" >opción numero 2 por 40 puntos</p> 
			<p><input type="checkbox" value="50" name="Check3" onclick=" Suma(this.checked,this.value)" >opción numero 3 por 50 puntos</p> 
			<p><input type="checkbox" value="100" name="Check4" onclick=" Suma(this.checked,this.value)" >opción numero 4 por 100 puntos</p> 
			<p><input type="checkbox" value="50" name="Check5" onclick=" Suma(this.checked,this.value)" >opción numero 5 por 50 puntos</p> 
			<p><input type="checkbox" value="15" name="Check6" onclick=" Suma(this.checked,this.value)" >opción numero 6 por 15 puntos</p> 
			<p>  
			<input type="text" name="total" value="0"> 
           <input type="submit" value="Continuar">  
         </div>  
         </form> 
		<p>usted lleva un total de puntos gastado</p> 
		<div style="position: absolute; width: 381px; height: 78px; z-index: 1; left: 270px; top: 130px" id="capa1"> 
Hacer Clicks aquí para ver los puntos actualizados.<p>Revisar  
antes de enviar.</div> 
</body>   
</html>                |