Ver Mensaje Individual
  #4 (permalink)  
Antiguo 08/04/2005, 13:54
Avatar de tunait
tunait
Moderadora
 
Fecha de Ingreso: agosto-2001
Ubicación: Terok Nor
Mensajes: 16.805
Antigüedad: 23 años, 5 meses
Puntos: 381
Puess... la fórmula del centrado es

(screen.width - anchura)/2 //para horizontal
(screen.height - altura)/2 //para vertical

en tu caso ...

window.onresize = function(){
resizeTo(640,480);
moveTo((screen.width - 640)/2,(screen.height - 480)/2)
}