Ver Mensaje Individual
  #2 (permalink)  
Antiguo 18/07/2005, 08:12
safe
 
Fecha de Ingreso: enero-2003
Ubicación: Córdoba, Argentina
Mensajes: 1.047
Antigüedad: 21 años, 3 meses
Puntos: 10
Este seria un ejemplo de como centrar un popup:

Código:
//-> ESTA ES LA FUNCION

<script language="javascript">
function abrir(que)
{
	var ancho = 600;
	var alto = 400;
	var x = (screen.width-ancho)/2;
	var y = (screen.height-alto)/2;
	window.open(que,'', 'width=' + ancho + ', height=' + alto + ', left=' + x + ', top=' + y + ',resizable=yes,scrollbars=no');
}
</script>

//-> ASI LLAMAS LA FUNCION CUANDO LO NECESITES

abrir('pagina.htm')
Saludos
__________________
oohh... quisiera ser godines!!!