ASP - Resolucion de video

 
Vista:

Resolucion de video

Publicado por Rottweiler (1 intervención) el 14/10/2002 21:14:23
Hola, como puedo saber cual es la resolución de pantalla, para así poder cargar un fondo de 800X600 o 1024X720
Saludos
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:Resolucion de video

Publicado por Avatar (150 intervenciones) el 15/10/2002 22:15:58
Hola:

Se puede averiguar esto con una función JAVASCRIPT.

<script language="JavaScript1.2">
<!--

/*
Screen resolution detection and notification Script-
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/

var correctwidth=800
var correctheight=600
if (screen.width!=correctwidth||screen.height!=correctheight)
document.write("This webpage is bested viewed with screen resolution "+correctwidth+"*"+correctheight+". Your current resolution is "+screen.width+"*"+screen.height+". If possible, please change the resolution!")
//-->
</script>

----------------------------
the Great aVATAR!
----------------------------
[email protected]
[email protected]
ICQ: 28864859
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar