
01/02/2006, 19:46
|
 | | | Fecha de Ingreso: octubre-2004 Ubicación: Argentina
Mensajes: 836
Antigüedad: 20 años, 5 meses Puntos: 4 | |
Cita: <html>
<head>
<script>
function todos(){
ch=document.forms['form1'].elements;
for(x=1;x<ch.length;x++){
if(ch[0].checked==true){
ch[x].checked=true;
}else{
ch[x].checked=false;
}
}
}
function comprobar(c){
document.forms['form1']['checkbox'].checked=false;
}
</script></head>
<body>
<form name="form1" method="post" action="">
<p>
<input type="checkbox" name="checkbox" value="checkbox" onclick="todos()">
todos </p>
<p>
<input type="checkbox" name="checkbox2" value="checkbox" onclick="comprobar(this)">
uno<br>
<input type="checkbox" name="checkbox3" value="checkbox"onclick="comprobar(this)">
dos<br>
<input type="checkbox" name="checkbox4" value="checkbox" onclick="comprobar(this)">
tres<br>
<input type="checkbox" name="checkbox5" value="checkbox" onclick="comprobar(this)">
cuatro<br>
<input type="checkbox" name="checkbox6" value="checkbox" onclick="comprobar(this)">
cinco<br>
<input type="checkbox" name="checkbox7" value="checkbox" onclick="comprobar(this)">
seis<br>
<input type="checkbox" name="checkbox8" value="checkbox" onclick="comprobar(this)">
siete<br>
<input type="checkbox" name="checkbox9" value="checkbox" onclick="comprobar(this)">
ocho<br>
</p>
</form>
</body>
</html> suerte
__________________ by Capitán Buscapina
. |