Ver Mensaje Individual
  #4 (permalink)  
Antiguo 27/05/2005, 08:46
ratamaster
 
Fecha de Ingreso: octubre-2004
Ubicación: En algún lugar de la República Oriental del Uruguay
Mensajes: 366
Antigüedad: 20 años, 4 meses
Puntos: 0
probé con esto y nu funcionó:

Código:
function redireccionar() {
    var url640x480 = "http://www.tu-sitio.com/640x480";
    var url800x600 = "http://www.tu-sitio.com/800x600";
    var url1024x768 = "http://www.tu-sitio.com/1024x768";
    var nWdt = screen.width;
    var nHgh = screen.height;
    if ((nWdt == 640) && (nHgh == 480){
    	 window.location.href= url640x480;
    }else if (((nWdt == 800) && (nHgh == 600)){
    	 window.location.href= url800x600;
    }else if ((nWdt == 1024) && (nHgh == 768)){
    	 window.location.href= url1024x768;
    }else if ((nWdt == 1280) && (nHgh == 1024)){
    	alert("hola");
        window.location.href= url1024x768;
    }else{ window.location.href= url640x480;
}
puse un alert en 1280 x 1024 pero no me lo muestra. Además tambien agregé el <body onLoad="redireccionar()">

Alguien sabe que está mal?

gracias
ratamaster