Ver Mensaje Individual
  #4 (permalink)  
Antiguo 11/03/2002, 09:56
jlmm
 
Fecha de Ingreso: julio-2001
Ubicación: Internet
Mensajes: 1.690
Antigüedad: 22 años, 9 meses
Puntos: 1
Re: ventana pop-up centrada

Hola!,

Utilizamos Una Funcion Que Nos Abra La Ventana, a La Cual Le Pasamos Los Parametros Correspondientes A La Anchura Y Altura De La Ventana:

function AbrirVentana(ancho, alto)
{
var sHeight, sWidth;
sHeight = screen.height;
sWidth = screen.width;
var sLeft, sTop;
sLeft = (screen.width - ancho) / 2;
sTop = (screen.height - alto) / 2;

window.open("http://www.google.com/","NuevaVentana","height=&quot ; + alto + ", width=" + ancho + ", top=" + sTop + ", left=" + sLeft + ", status=no,toolbar=no,menubar=no,location=no, scrollbars=yes, resizable=yes");
}

Y Luego La Llamamos:

<A HREF="javascript:AbrirVentana(300, 300)">Abrir Ventana</A>

Y Listo, Avisame Si Te Sirvio.

<FONT COLOR=GRAY SIZE=2><I>"No Hay Cosas Imposibles, Solo Hombres Incapaces"</I></FONT><HR><CENTER><IMG SRC="http://isis.uniandes.edu.co/~jorg-ma1/m.gif"></CENTER>