Ver Mensaje Individual
  #2 (permalink)  
Antiguo 24/01/2002, 07:11
bet
 
Fecha de Ingreso: febrero-2001
Mensajes: 292
Antigüedad: 23 años, 3 meses
Puntos: 0
Re: Ventana siempre centrada

Probá a ver si te sirve el siguiente código:

<pre>
&lt;html&gt;
&lt;head&gt;
&lt;title&gt; New Document &lt;/title&gt;
&lt;script language=&quot;javascript&quot;&gt;

var win = null;
function nuevaVentana(pagina,nombre,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
estilo =
'height='+h+',width='+w+',top='+TopPosition+',left ='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(pagina,nombre,estilo)
}
&lt;/script&gt;
&lt;/head&gt;

&lt;body onLoad=&quot;nuevaVentana(this.href,'name','300',' 200','yes');return false&quot;&gt;

&lt;/body&gt;
&lt;/html&gt; </pre>

<hr noshade size=1 color="#000000"><img src="http://www.gograph.com/Images-8712/ClipArt/cat03.gif" height="50" border=0 align="absmiddle"> <font size="2" face="verdana" color="#000000">bet[/CODE]