Ver Mensaje Individual
  #4 (permalink)  
Antiguo 15/03/2006, 14:48
DJJJ
 
Fecha de Ingreso: octubre-2005
Mensajes: 407
Antigüedad: 18 años, 6 meses
Puntos: 2
en javascript es asi

este es el codigo

Código HTML:
<html> 
<head> 
<script> 
var res, url 
if ((screen.width == 800) && (screen.height == 600)){ 
res="800x600" 
url="800x600.htm"} 
else if ((screen.width == 1024) && (screen.height == 768)){ 
res="1024x768"; 
url="1024x768.htm"} 
else if ((screen.width == 1152) && (screen.height == 864)){ 
res="1152x864"; 
url="1152x864.htm"} 
else if ((screen.width == 1280) && (screen.height == 1024)){ 
res="1280x1024"; 
url="1280x1024.htm"} 
else{ 
window.location.href = "otra.htm"} 
function Entrar(){ 
window.location.href=url} 
</script> 
</head> 
<body> 
Tu Resolución de Pantalla es: <b><script>document.write(res)</script></b><br> 
<a href="javascript:Entrar()">Acceda a la página correspondiente a tu resolución</a> 
</body> 
</html> 
__________________
DJJJ