
12/08/2004, 07:20
|
 | | | Fecha de Ingreso: diciembre-2002
Mensajes: 157
Antigüedad: 22 años, 4 meses Puntos: 1 | |
Perdón, lo que pasa es que hay una llamada a una función que no la puse, de todos modos podrías reemplazarla por window.open(..... ,y si no esta es la funcón que faltaba.
function OpenCenteredPopup(page,title,width,height,options, fixed)
{
//correct size for the popup
var popupWidth;
var popupHeight;
var popupTop;
var popupLeft;
if (fixed=='yes') {
if (width==0)
popupWidth = screen.width - 100;
else
popupWidth = width;
if (height==0)
popupHeight = screen.height - 100;
else
popupHeight = height;
} else {
if (width==0)
popupWidth = screen.width - 100;
else
popupWidth = screen.width * width / 800
if (height==0)
popupHeight = screen.height - 100;
else
popupHeight = screen.height * height / 600
}
//center the popup
var screenX;
var screenY;
screenY = screen.availHeight;
screenX = screen.availWidth;
popupLeft = (screenX - popupWidth) / 2;
popupTop = (screenY - popupHeight) / 2;
if (navigator.appName.indexOf("Microsoft")<0) {
popupLeft = (popupLeft - pageXOffset);
popupTop = (popupTop - pageYOffset);
}
if (popupTop<0) popupTop=0;
if (popupLeft<0) popupLeft=0;
//opens the popup
if (navigator.appName.indexOf("Microsoft")>=0)
{
if (options != '') options+=',';
options+='width='+popupWidth+',height='+popupHeigh t+',left='+ popupLeft +',top='+popupTop;
}
else
{
if (options != '') options+=',';
options+='width='+popupWidth+',height='+popupHeigh t+',screenX='+ popupLeft +',screenY='+popupTop;
}
floater=window.open(page,title,options);
floater.focus();
}
__________________ Martin |