Detectar Resolucion de Pantalla

27/09/2003 - 17:00 por Gustavo Israel Silva Saire | Informe spam
Es posible detectar la resolucion de la pantalla del cliente con ASP, asi
para acomodar el contenido a dicha resolcuion, gracias de antemano

_______________________________
Gustavo Silva Saire
 

Leer las respuestas

#1 Phoncadiz
27/09/2003 - 23:32 | Informe spam
En ASP no se ... pero si te sirve en javascript...

<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>
</head>
<body onLoad="redireccionar()">
</body>
</html>

Por ejemplo

<script language="JavaScript1.2">
<!--
document.writeln("<b>Tú resolución es de:</b> " + screen.width + " x " +
screen.height +"");
//-->
</script>

Por ejemplo

Saludos
"Gustavo Israel Silva Saire" escribió en el mensaje
news:
Es posible detectar la resolucion de la pantalla del cliente con ASP, asi
para acomodar el contenido a dicha resolcuion, gracias de antemano

_______________________________
Gustavo Silva Saire


Preguntas similares