Posted by julian_m on 04/26/06 07:59
webramz@gmail.com wrote:
> You can do this by JavaScript not PHP (or both of them together for
> some reason):
>
> <script language="JavaScript>
> var w = screen.width;
> var h = screen.height;
>
> alert('You are using ' + w + 'x' + h + ' resolution...!');
>
> </script>
>
And then, you can put links to different Css files, each of them
related with a particular resolution
<a href="yoursite.php?res=1024> your resolution</a><a href
="yoursite.php?res=800 --- and so on
I'm asuming that the visual layout of your site is made through css.
I've done it once, and worked like a charm. I don't understand why some
people thik that this shouldn't be done at all ¿?
regards - jm
Navigation:
[Reply to this message]
|