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