Jump to content


Photo

Screen Dimensions


  • Please log in to reply
1 reply to this topic

#1 haydndup

haydndup
  • Members
  • PipPipPip
  • Advanced Member
  • 42 posts
  • LocationJohannesburg, South Africa

Posted 24 May 2006 - 06:07 PM

Is there a way to get JS to return the dimensions that a user's pc screen is set to? eg ->

width = 800
height = 600

or

width = 1024
height = 768

etc.etc

there are certain sections of my site that simply using % won't help... i need to calculate exact sizes

tia
[!--coloro:#660000--][span style="color:#660000"][!--/coloro--]The Gene Pool Could Use A Little Chlorine[!--colorc--][/span][!--/colorc--]

#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 24 May 2006 - 06:47 PM

Yes ... google ... [a href=\"http://www.google.com/search?q=javascript+window+size&hl=en&lr=&c2coff=1&rls=GGLD,GGLD:2004-28,GGLD:en&start=10&sa=N\" target=\"_blank\"]http://www.google.com/search?q=javascript+...n&start=10&sa=N[/a]
Legend has it that reading the manual never killed anyone.
My site




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users