Ver Mensaje Individual
  #4 (permalink)  
Antiguo 17/02/2006, 07:07
Avatar de pinchoso
pinchoso
 
Fecha de Ingreso: octubre-2005
Ubicación: Barcelona
Mensajes: 177
Antigüedad: 19 años, 5 meses
Puntos: 0
Con esto te funcionara:

<script>
function calcula() {
var i
var total
total=0
for (i=1; i < 7; i++)
{
total = total + parseInt(document.form1['rad'+i].value)
}
document.write(total)
}
</script>
<form name="form1" method="post" action="">
<input name="rad" id="rad1" type="radio" value="1" >
<input name="rad" id="rad2" type="radio" value="1" >
<input name="rad" id="rad3" type="radio" value="1" >
<input name="rad" id="rad4" type="radio" value="1" >
<input name="rad" id="rad5" type="radio" value="1" >
<input name="rad" id="rad6" type="radio" value="1" >
<input name="" type="button" onClick="calcula()">
</form>

Saludos!
__________________