Check visitors resolution !!

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
Hurkle
New php-forum User
New php-forum User
Posts: 36
Joined: Tue Jan 07, 2003 8:45 am
Location: Minnesota, USA

Tue Jan 07, 2003 2:47 pm

I don't know of any way to do this without using client side scripting of some kind. If you know javascript, the users screen resolution can be found by checking the values of screen.width and screen.height. If you go to you favorite search engine, like google.com, and type in :
javascript "detect screen resolution"

you'll find lots of stuff telling you how to do this.

To do this without client side scripting, I would simply have some links that let the user click 'larger' or 'smaller' until the display matches their screen resolution.

Best of luck, and if you find a way to do this in straight php, let me know.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: Baidu [Spider] and 11 guests