View Single Post
Old 09-27-2009, 05:37 PM   #1 (permalink)
Tanax
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default Accessing screen-resolution?

Hey!

I asked this before, and you said javascript: screen.width & screen.height.

Problem is, this doesn't really work the way I want.
You see, I have a big screen so it says 1440 in width. Now, that's great.

However, that's not what I meant by screen resolution. That's more.. screen size. I can "zoom" on websites to make them bigger, and THAT'S the resolution I'm interested in getting.

This is me watching the same website from the same computer.
screen.width says 1440px all the time, but as you see, I've decreased the width on the website with quite alot by holding ctrl + scrolling with mousewheel.

http://img524.imageshack.us/img524/6025/normalc.jpg
http://img59.imageshack.us/img59/8526/normal2n.jpg

Any ideas how to get that value? Because if they have 960px screen, and have zoomed out, I can still use 1200 wide website..
__________________
Tanax is offline  
Reply With Quote