Hola maestros,
Estoy tratando de redireccionar según resolución y usé un script de las FAQ, lo modifiqué un poco para adaptarlo a mis necesidades y lo puse. Pero no me está funcionando. Tal vez lo modifiqué mal, me podrían decir si este código tiene algo mal? Muchas gracias.
Código:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Tower Casinos</title>
<script language="JavaScript">
function redireccionar() {
var url800x600 = "http://www.towercasinos.com/princess/index1.htm";
var url1024x768 = "http://www.towercasinos.com/princess/index2.htm";
var nWdt = screen.width;
var nHgh = screen.height;
if ((nWdt == 800) && (nHgh == 600)) window.location.href= url800x600;
else if ((((nWdt == 1024) && (nHgh == 768)) window.location.href= url1024x768;
else window.location.href= url800x600;
}
</script>
</head>
<body onLoad="redireccionar()" bgcolor="#000000">
</body>
</html>