Ver Mensaje Individual
  #6 (permalink)  
Antiguo 03/02/2006, 11:07
Avatar de susaninhax
susaninhax
 
Fecha de Ingreso: noviembre-2004
Mensajes: 358
Antigüedad: 19 años, 6 meses
Puntos: 3
Exclamación

Porfa, seguro que hay alguin que controla de javascript

el código es este:
<html>
<head>
<title> New Document </title>
<script>
function pintar(){
if (document.formulario.RADIO1[0].checked)
document.getElementById("pintar").style.display="b lock";
else{
document.getElementById("pintar").style.display="n one";
}
}
</script>
</head>
<body>
<table>
<form name="formulario">
<tr id="pintar" style="display:none">
<td>
<input type="text" name="CAMPO1" value="">
<input type="text" name="CAMPO2" value="">
</td>
</tr>
<tr>
<td><input type="radio" name="RADIO1" onclick="pintar()"></td>
<td><input type="radio" name="RADIO1" onclick="pintar()"></td>
</tr>
</form>
</table>
</body>
</html>

SSe podría modificar este script para poder hacer lo siguiente:

Que cuando pinche en radio1 active una celda y desactive otra, y cuando pincho en radio 2, activo la otra y desactivo la celda que había activado, no se si me he explicado bien, alguien se le ocurre algún modo porfaaaa!!!!