saque este codigo de los faq pero el problema es que sirve para direccionar a una persona segun la resoluccion pero lo que quiero hacer es que segun la resolucion muestre una imagen del tamaño correcto en la misma pagina
Código PHP:
   <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";
    var nWdt = screen.width;
    var nHgh = screen.height;
    if ((nWdt == 640) && (nHgh == 480)) window.location.href= url640x480;
    else if ((((nWdt == 800) && (nHgh == 600)) window.location.href= url800x600;
    else if ((nWdt == 1024) && (nHgh == 768)) window.location.href= url1024x768;
    else window.location.href= url640x480;
   }
  </script>
 </head>
 <body onLoad="redireccionar()">
 </body>
</html> 
   gracias por cualquier ayuda
 
 
  te devo una 
