#1 ·
14/May/2006, 14:48 Hola a todos, tengo una preguntita que me vendria de ayuda. El codigo es el sigueinte
Codigo:
<head> <SCRIPT LANGUAGE="JavaScript"> function formHandler(){ var URL=document.form.site.options [document.form.site.selectedIndex].value; window.location.target = CANAL .href = URL ; } </SCRIPT> </head> <body text="#FFFF00" bgcolor="#000000"> <FORM name = "form"> <p align="center"> <SELECT NAME="site" SIZE=1 onChange ="formHandler()"> <OPTION>Canal <OPTION VALUE="http://www.mma-clips.com/modules/MMA_TV/ActiveX/TV1ie.htm">TV1, ie <OPTION VALUE="http://www.mma-clips.com/modules/MMA_TV/ActiveX/TV1ie.htm">TV,1 mf </SELECT></p> </FORM> <p align="center"><iframe src="noselected.htm" width="490" height="399" name="CANAL" scrolling="no" border="0" frameborder="0"> MMA TV</iframe><br> <iframe src="Chat.htm" width="874" height="316" name="Chat" scrolling="no" border="0" frameborder="0"> Chat</p></p></p>
La función es conocida como goto en javascript pero quiero cambiar el target y no se como hacerlo quiero que el target vaya al iframe CANALES.
Un saludo aver si alguien lo sabe
ZeYt Usuario Novato
Mensajes: 4 Desde: 07/Ene/2006
· · #2 ·
21/May/2006, 21:03 Buenas, pídeselo así
Codigo:
<SCRIPT LANGUAGE="JavaScript"> function formHandler(){ var URL=document.form.site.options [document.form.site.selectedIndex].value; parent.CANALES.location.href = URL ; } </SCRIPT>
Saludos :o)
tunait Usuario habitual
Mensajes: 43 Desde: 29/Ago/2003
· ATENCIÓN: Este tema no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un nuevo tema en lugar de responder al actual Opciones:
Subscríbete a este tema Date de baja de este tema
TU NO PUEDES Escribir nuevos temas en este foro TU NO PUEDES Responder a los temas en este foro TU NO PUEDES Editar tus propios mensajes en este foro TU NO PUEDES Borrar tus propios mensajes en este foro
Ahora son las 21:36 UTC+01:00