18/07/2005, 08:12
|
| | Fecha de Ingreso: enero-2003 Ubicación: Córdoba, Argentina
Mensajes: 1.047
Antigüedad: 22 años 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!!! |