Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/07/2002, 11:32
Avatar de ferny
ferny
Il capo della mafia
 
Fecha de Ingreso: febrero-2002
Ubicación: Al final del cable
Mensajes: 10.080
Antigüedad: 22 años, 2 meses
Puntos: 55
Re: Detectar configuración de pantalla

Código:
 <!-- Esta debería ser tu página de inicio -->
<!-- Modificar únicamente las direcciones url -->

<html>

<head><script LANGUAGE="JavaScript">

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";
if ((screen.width == 640) && (screen.height == 480)) 
window.location.href= url640x480;
else if ((screen.width == 800) && (screen.height == 600))
window.location.href= url800x600;
else if ((screen.width == 1024) && (screen.height == 768))
window.location.href= url1024x768;
else window.location.href= url640x480;
}

</script>

<title></title>
</head>

<body onLoad="redireccionar()">
</body>
</html>
:)

<hr>
Saludos de Ferny.
"En teoría no hay diferencia entre teoría y práctica, pero en la práctica sí la hay"
Pásate por mi página de DivX <a href="http://www.solodivx.host.sk" title="SOLODIVX">http://www.solodivx.host.sk</a>