SyntaxFix
Write A Post
Hire A Developer
Questions
$(window).height() $(window).width()
There is also a plugin to jquery to determine element location and offsets
http://plugins.jquery.com/project/dimensions
scrolling offset = offsetHeight property of an element