Ver Mensaje Individual
  #2 (permalink)  
Antiguo 06/08/2002, 00:12
unKnown
Usuario no validado
 
Fecha de Ingreso: julio-2001
Mensajes: 766
Antigüedad: 22 años, 10 meses
Puntos: 0
Re: Ayuda con javita

si es lo que creo que quieres hacer
podrias hacerlo repitiendo esa sientencia
pero haciendo uso del else if bien podrias usar algo asi


<script language="Javascript">
function valida(f)
{
var a=0,b=0
for(var z =0;z<f.elements.length;z++)
if(f.elements[z].type=="checkbox"){b++
if(!f.as[z].checked)a++}
if(a==b)
{
alert("Debes de seleccionar Un CheckBox");
return false
}
else return true
}
</script>
</script>


<center>
<form onsubmit="return valida(this)">
<input type="checkbox" name="as" value="check me">
<input type="checkbox" name="as" value="check me">
<input type="checkbox" name="as" value="check me">
<input type="checkbox" name="as" value="check me">
<input type="checkbox" name="as" value="check me">
<input type="submit">

</form>
</center>

<center><hr size="1" width="100%" noshade><a href=javascript:MsgrApp.LaunchIMUI('gpa36@hotmail. com')>
<strong><font face="courier new" color="#666666" size="2">Contact Me?[/CODE]</strong>
<IMG SRC="http://woertman.org:8080/msn/gpa36" border="0"></A></ce