Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/03/2007, 00:08
cruzz
 
Fecha de Ingreso: noviembre-2004
Ubicación: Montréal - Santa Fe
Mensajes: 140
Antigüedad: 19 años, 6 meses
Puntos: 2
Problema llamando funcion()

Hola a todos
tengo esta funcion que abre un popup y carga un video, la misma es llamada desde un boton
el problemaes que cuando pulso la primer vez no se carga el video... si le doy F5 si...
alguien podria decirme que es?
Código HTML:
function videos() {
	      ancho=300;
	      alto=320;
	      posicionx=(screen.width-ancho)/2;
        posiciony=(screen.height-alto)/2;
  
        ventana = window.open("", "", "width=" + ancho + ",height=" + alto + ",left=" + posicionx + ", top=" + posiciony);
	
        with (ventana.document) {
             open();
             
             write("<html><head><title>Video</title><meta http-equiv='Content-Type' content='text/html;'><scri" + "pt type='text/javascript' src='./videos/ufo.js'></scri" + "pt></head><body leftMargin=0 topMargin=0 marginwidth='0' marginheight='0'><p id='video1'></p><scri" + "pt type='text/javascript'> var FU = {movie:'./videos/mediaplayer.swf',width:'300',height:'312',majorversion:'7',build:'0',bgcolor:'#FFFFFF',allowfullscreen:'true',	flashvars:'file=videos/lista.xml&displayheight=200&lightcolor=0x996600&backcolor=0x000000&frontcolor=0xCCCCCC&repeat=true' }; UFO.create(	FU, 'video1');</scri" + "pt></body></html>");             
             close();
        }
}


//-->