|    
			
				12/08/2004, 07:36
			
			
			  | 
  |   |  |  |  |  Fecha de Ingreso: diciembre-2002 
						Mensajes: 157
					 Antigüedad: 22 años, 10 meses Puntos: 1 |  | 
  |  mangui:
 Aqui hay algo que funca (mas o menos feo) para netscape. La idea es que se siga la posición del mouse al hacer click en el botón cerrar, pues cuando ello suceda la posición de e.pageY debería ser 0 pues se encuentra fuera de document.
 
 No es una solución, pero por ahi te da alguna idea y entre amobos sacamos algo.
 
 
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <html>
 <head>
 </head>
 <script>
 
 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();
 }
 
 
 
 var pX=1;
 var pY=1;
 
 function ExitSite(e) {
 width=515;
 height=225;
 if (navigator.appName.indexOf("Microsoft")>=0){
 e=event;
 var tempX = e.clientX + document.body.scrollLeft;
 var tempY = e.clientY + document.body.scrollTop;
 if(tempX<0&&tempY<0){
 OpenCenteredPopup('popup.asp','popWin',width,heigh  t,'toolbar=0, location=0, directories=0, status=0, menuBar=0, scrollBars=0, resizable=0','')
 }
 }else{
 if(pY<20){
 OpenCenteredPopup('popup.asp','popWin',width,heigh  t,'toolbar=0, location=0, directories=0, status=0, menuBar=0, scrollBars=0, resizable=0','')
 }
 return true;
 }
 }
 
 function mouseMove(e) {
 pX = (navigator.appName.indexOf("Microsoft")>=0)?  event.x+document.body.scrollLeft: e.pageX ;
 pY = (navigator.appName.indexOf("Microsoft")>=0)?  event.y+document.body.scrollTop: e.pageY;
 return true;
 }
 
 
 function init(){
 window.onunload=ExitSite;
 document.mousemove=mouseMove;
 }
 </script>
 <body onLoad="init();"   >
 </body>
 </html>
 
				__________________Martin
     |