Reply to Re: hwo to get browser window size?

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация