Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/05/2004, 12:56
Avatar de PatomaS
PatomaS
Colaborador
 
Fecha de Ingreso: marzo-2004
Ubicación: En alguna otra parte
Mensajes: 4.656
Antigüedad: 21 años
Puntos: 63
Hola

Pues en principio podrías hacerlo así:

Ejemplo:

Función de javascript:

Código:
	function pagina() {
		if (document.forms[0].elements[0].checked == true) {
			document.getElementById('marco').src = "linux.htm";
		} else {
			document.getElementById('marco').src = "microsoft.htm";
		}
	}
Código html:


Código:
<form onclick="javascript:pagina(this)">
opción 1 <input type="radio" name="algo">
<br />
opción 2 <input type="radio" name="algo">
</form>
<iframe src="" width="400" height="300" frameborder="1" id="marco"></iframe>
Suerte

Felicidad
__________________
¡ hey, hou, hou, hey !

Última edición por PatomaS; 26/05/2004 a las 12:58