PDA

View Full Version : User Resolution Prompt?


colicab-d
02-15-2004, 08:05 PM
Would it be possible to detect if a user is viewing the site at say a certain screen resolution and if under it or over ( i dunno ) send them to a page that prompts them to change it?

of course the option to not show the screen again could be ticked so they dont get the message each time they visit :p

this would be real handy so as skinners could make layouts for set widths and be safe in the knowledge that the user has a prompt to fix in case theyere using a smaller res

NTLDR
02-15-2004, 09:01 PM
You can find out the users screen size via JavaScript IIRC.

Andreas
02-15-2004, 09:27 PM
Yes, you can do that via JavaScript (screen.width, screen.height), but keep in mind that users might have disabled JavaScript.

Anyway, a website should never-ever be designed for one resolution only. It should work (almost) the same with all resolutions > 800x600.

If it does not: Bad Webdesign ;)

colicab-d
02-16-2004, 05:18 AM
yeah i know Kirbyde, i work with min res of 800x600, it was just an idea but thanx for the info