V
vunet.us
The JS line below is supposed to return the number of pixels from the
very top of the page to the top of the scrolled-down position of this
page. I've noticed that IE7 always return 0 even though I scrolled
down a lot. Firefox and IE6 show over 1000 in my tests. Did something
change in IE7?
var topPosFix = typeof window.pageYOffset != 'undefined' ?
window.pageYOffset:document.documentElement &&
document.documentElement.scrollTop ?
document.documentElement.scrollTop: document.body.scrollTop?
document.body.scrollTop:0;
very top of the page to the top of the scrolled-down position of this
page. I've noticed that IE7 always return 0 even though I scrolled
down a lot. Firefox and IE6 show over 1000 in my tests. Did something
change in IE7?
var topPosFix = typeof window.pageYOffset != 'undefined' ?
window.pageYOffset:document.documentElement &&
document.documentElement.scrollTop ?
document.documentElement.scrollTop: document.body.scrollTop?
document.body.scrollTop:0;