Ver Mensaje Individual
  #24 (permalink)  
Antiguo 28/07/2012, 17:48
georgarming
 
Fecha de Ingreso: febrero-2012
Mensajes: 25
Antigüedad: 13 años
Puntos: 0
Respuesta: Cambiar tamaño iframe

Cita:
Iniciado por ger84 Ver Mensaje
Bueno pero imaginate que seteando las propiedades los iframes se tendrían que comportar igual si estuviesen lejos y cerca, por lo tanto si estuviesen cerca, deberían superponerse al expandirse. De todos modos se me ocurrió esto:

Código Javascript:
Ver original
  1. this.iframe.setAttribute("style","position:fixed;");
  2. if (this.name == "App0"){
  3.     this.iframe.setAttribute("hspace","20");
  4.     }
  5. if (this.name == "App1"){
  6.     this.iframe.setAttribute("hspace","200");
  7.     }
  8. document.body.appendChild(this.iframe);

Pero no se porque el hspace no lo respeta y me los pone en el mismo lugar
Muchas gracias por el aporte. Algo falla, pero yo no sé verlo...