Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/09/2007, 15:49
atiro8
 
Fecha de Ingreso: octubre-2005
Mensajes: 151
Antigüedad: 18 años, 5 meses
Puntos: 1
Re: codigo pop up no me anda 4 lineas...

Mira yo utilice este codigo en un sistema de fotografias espero te sirva:

En el fla:
getURL("javascript:irudi('http://www.tudireccion.com/imagenes/"+var_imagen+"','Titulo de la foto')");

///////////////////////////////////////////////////////
Este javascript te redimensiona la ventana a la medida de la imagen.
En el head del html donde esta el swf:

var ventana;
var cont=0;

function irudi(imagen,titulo){

if(cont==1){ventana.close();ventana=null}

ventana=window.open('','ventana','resizable=no,scr ollbars=no')
ventana.document.write('<html><head><title>' + titulo + '</title></head><body bgcolor="#99000" marginwidth="10" marginheight="10" topmargin="10" bottommargin="10" leftmargin="10" rightmargin="10" scroll="no" onUnload="opener.cont=0"><img src="' + imagen + '" onLoad="opener.redimensionar(this.width, this.height)">');
ventana.document.close();
cont++;
}
function redimensionar(ancho, alto){
ventana.resizeTo(ancho+30,alto+100);
ventana.moveTo((screen.width-ancho)/2,(screen.height-alto)/2); //centra la ventana donde se carga la imagen
}
</script>
__________________
www.empresanet.info