Ver Mensaje Individual
  #2 (permalink)  
Antiguo 17/11/2011, 16:09
johhan16
 
Fecha de Ingreso: junio-2010
Ubicación: Venezuela, Zulia
Mensajes: 686
Antigüedad: 13 años, 10 meses
Puntos: 55
Respuesta: Redirigir a web móvil dependiendo de su resolución de pantalla

yo uso javascript para redirigir segun la resolucion

Código Javascript:
Ver original
  1. <script language="javascript" >
  2.  
  3. function redireccionar() {
  4.  
  5.     var url1024x768 = "menu2.php";
  6.     if ((screen.width == 640) && (screen.height == 480)) {
  7.     <!-- alert('ESTE SISTEMA NO SE VISUALIZA DE FORMA CORRECTA EN ESTA RESOLUCIÓN \n SE RECOMIENDA 1152 X 864 O SUPERIOR'); -->
  8.     } else if ((screen.width == 800) && (screen.height == 600)) {
  9.     <!-- alert('ESTE SISTEMA NO SE VISUALIZA DE FORMA CORRECTA EN ESTA RESOLUCIÓN \n SE RECOMIENDA 1152 X 864 O SUPERIOR'); -->
  10.     } else if ((screen.width == 1024) && (screen.height == 768)) {
  11.     <!-- alert('ESTE SISTEMA NO SE VISUALIZA DE FORMA CORRECTA EN ESTA RESOLUCIÓN \n SE RECOMIENDA 1152 X 864 O SUPERIOR'); -->
  12.     window.location.href= url1024x768;
  13.     } else {    }
  14. }
  15.  
  16. </script>

y en el body
Código HTML:
Ver original
  1. <body onload="redireccionar()">

espero que agarres la idea
__________________
<?php echo "No te metas a lo hondo del Mar si no sabes nadar, primero aprende a nadar" ?>
...Error en linea: 1 o.O