Ver Mensaje Individual
  #3 (permalink)  
Antiguo 05/12/2013, 21:06
Avatar de dapaez
dapaez
 
Fecha de Ingreso: diciembre-2013
Ubicación: Guayaquil
Mensajes: 3
Antigüedad: 10 años, 5 meses
Puntos: 0
Respuesta: Problema con iframe

Si gracias, era cuestion de poner embed en vez del edit en los url de las imagenes.
Ahora tengo otro problema: quiero q al seleccionar una opcion de mapa desde un select y aplastar un boton submit me salga solo ese mapa!

este es mi codigo html:

<div id="mapa1">
<iframe id="embebida1" src="https://mapsengine.google.com/map/u/0/embed?mid=zIBmsPy7a3ms.k-2IUxr7Bc6I" width="840" height="480"></iframe>
</div>
<div id="mapa2">
<iframe id="embebida2" src="https://mapsengine.google.com/map/u/0/embed?mid=zIBmsPy7a3ms.k7AHRGH0lsw0" width="840" height="480"></iframe>
</div>
<div id="mapa3">
<iframe id="embebida3" src="https://mapsengine.google.com/map/u/0/embed?mid=zIBmsPy7a3ms.kMZmQm3XHY7U" width="840" height="480"></iframe>
</div>


y este es el javascript:

function go(){
map = document.createElement('div');
embebida = document.getElementById('embebida');
//emb = document.getElementById('embebida').src = loc;

opcion=document.getElementById('lineasbuses');
mapa1=document.getElementById('mapa1');
mapa2=document.getElementById('mapa2');
mapa3=document.getElementById('mapa3');

if(opcion.options[0].selected){
mapa1.style.visibility='visible';
mapa2.style.visibility='none';
mapa3.style.visibility='none';
map.appendChild(mapa1);
}

else if(opcion.options[1].selected)
mapa2.style.visibility='visible';
map.appendChild(mapa2);


else if(opcion.options[2].selected){
mapa3.style.visibility='visible';
map.appendChild(mapa3);
}
//map.appendChild(embebida);
//mapa.appendChild(map);

}

y esta es mi pagina:
www.rutasguayaquil.netai.net

es para un proyecto de la Uni