Ver Mensaje Individual
  #3 (permalink)  
Antiguo 26/07/2006, 18:04
Avatar de Cap.Buscapina
Cap.Buscapina
 
Fecha de Ingreso: octubre-2004
Ubicación: Argentina
Mensajes: 836
Antigüedad: 20 años, 5 meses
Puntos: 4
había preparado algo con protoripos que funciona hermosamente bien en FF y Opera , pero no funca en IE .

Cita:
<html>
<head>
<script>
function dd(tof){
todos=this.getElementsByTagName('input');
for(x=0;x<todos.length;x++){
todos[x].disabled=tof;
}
}

Object.prototype.deshabilitado=dd;

function bhOtros (accion){
if (accion=="b"){
document.getElementById('tdr_sexo').deshabilitado( true);
document.getElementById('tdtalle').deshabilitado(t rue);
}else{
document.getElementById('tdr_sexo').deshabilitado( false);
document.getElementById('tdtalle').deshabilitado(f alse);
}
}


</script>
</head>
<body>
<form name="form1" method="post" action="">
<table>
<tr>
<td class="texto_dest"><input type="radio" name="regalo" value="gorra" onclick="bhOtros('b');">Gorra <br>
<input type="radio" name="regalo" value="Remera Greenpeace" onclick="bhOtros('h');" >Remera Greenpeace <br>
<input type="radio" name="regalo" value="Remera Toxicos blanca" onclick="bhOtros('h');" >Remera Toxicos blanca <br>
<input type="radio" name="regalo" value="Remera Toxicos azul" onclick="bhOtros('h');" >Remera Toxicos azul <br>
<input type="radio" name="regalo" value="Remera Toxicos rojo" onclick="bhOtros('h');" >Remera Toxicos rojo <br>
<input type="radio" name="regalo" value="no" onClick="bhOtros('b');">No deseo recibir ningún regalo </td> </tr>
<tr>
<td><b>2) Elecci&oacute;n de sexo</b></td></tr>
<tr><td class="texto_dest" id="tdr_sexo"><input type="radio" name="r_sexo" value="h" id="r_sexo" >Para hombre
<input type="radio" name="r_sexo1" value="m" >Para mujer </td>
</tr>
<tr>
<td><b>3) Elecci&oacute;n de talle</b></td>
</tr>
<tr>
<td class="texto_dest" id="tdtalle"><input type="radio" id="talle1" name="talle" value="XL" >XL
<input type="radio" id="talle2" name="talle" value="L" >L
<input type="radio" id="talle3" name="talle" value="M" >M
<input type="radio" id="talle4" name="talle" value="S" >S
<input type="radio" id="talle5" name="talle" value="XS">XS</td>
</tr></table></form>
</body>
</html>
algun gurú del prototype me sacara la intriga de por que no va en IE.
__________________
by Capitán Buscapina
.