jquery how to get the page\'s current screen top position?
If I scroll my mouse wheel to some part of the page, how do I get the page\'s current top position?
var top = $('html').offset().top;
should do it.
edit: this is the negative of $(document).scrollTop()
$(document).scrollTop()
Use this to get the page scroll position.
var screenTop = $(document).scrollTop(); $('#content').css('top', screenTop);