![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
12/07/2006, 14:39
|
| | Fecha de Ingreso: julio-2006
Mensajes: 4
Antigüedad: 18 años, 6 meses Puntos: 0 | |
A ver qué os parece...
La llamda a la ventana la podría ser de este modo si usas un enlace...
<a onClick="window.open('destino.htm','destino','tool bar=0,location=0,directories=0,status=0,menubar=0, scrollbars=0,resizable=0,width=400,height=300')">N ueva ventana centrada</a>
En el body de la ventana a abrir (destino.htm) ponemos lo siguiente:
<body bgproperties="fixed" onLoad="fwindow_setCentrePosition()">
Definimos la función fwindow_setCentrePosition()
function fwindow_setCentrePosition (){
var leftmargin = (screen.width - document.body.clientWidth) / 2;
var topmargin = (screen.height - document.body.clientHeight) / 2;
moveTo(leftmargin,topmargin);
}
Prueba a ver si hay suerte...
Sldos. |