faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

76 of 106 people (72%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

how can i detect the screen resolution in order to display layers correctly for each resolution?

Apr 4th, 2008 20:01
ha mo, Alex Fenton, franck fratik,


The relevant properties are contained in the window.screen object, and
you could inspect these to set up your layers as you want:
window.screen.height is the pixel height (surprisingly!) of the user's
machine, and window.screen.width is the pixel width. These properties
are consistent across at least NN4, IE4 and NN6.
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com