Ver Mensaje Individual
  #1 (permalink)  
Antiguo 23/02/2010, 09:57
bucaral
 
Fecha de Ingreso: febrero-2010
Mensajes: 2
Antigüedad: 14 años, 2 meses
Puntos: 0
pasar a iframe direcciones desde menu

Tengo este programa que utiliza un form en lista y los deriva al iframe. No quiero una lista quiero utilizar unos botones .
Este es el script

<form name="jumpy">
<div align="center">
<p>
<select name="example" size="1" onChange="gone()">
<!-- CHANGE THE BELOW URLS TO YOUR OWN-->

<option value="http://www.yahoo.com">Yahoo</option>
<option value="http://www.google.com">google </option>
<option value="http://www.forosdelweb">Forosdelweb</option>

</select>

<input type="button" name="test" value="Ir!" onClick="gone()">

</p>

<script language="javascript">
<!--

//Drop-down Document Viewer- © Dynamic Drive (www.dynamicdrive.com)
//For full source code, 100's more DHTML scripts, and TOS,
//visit http://www.dynamicdrive.com

//Specify display mode (0 or 1)
//0 causes document to be displayed in an inline frame, while 1 in a new browser window
var displaymode=0
//if displaymode=0, configure inline frame attributes (ie: dimensions, intial document shown

var iframecode='<iframe id="external" style="width:460px;height:400px" src="estosvien.htm"></iframe>'

/////NO NEED TO EDIT BELOW HERE////////////

if (displaymode==0)
document.write(iframecode)

function gone(){
var selectedurl=document.jumpy.example.options[document.jumpy.example.selectedIndex].value
if (document.getElementById&&displaymode==0)
document.getElementById("external").src=selectedur l
else if (document.all&&displaymode==0)
document.all.external.src=selectedurl
else{
if (!window.win2||win2.closed)
win2=window.open(selectedurl)
//else if win2 already exists
else{
win2.location=selectedurl
win2.focus()
}
}
}
//-->
</script>