Hi all,

I was writing a lazyloader using window.getSize().scroll, i found it
just buggy, what I had in FF, opera and chrome was quite different
from IE which was always 0.
 the test was such a pain when IE downloaded 100 images at the same
time.

after spending sometimes for a solution I just had this solution that
looked correct


note that i'm using mootools 1.1


        window.getScroll = function () {
                return {x: window.scrollX || 
document.body.parentNode.scrollLeft ||
document.body.scrollLeft,
                                y: window.scrollY || 
document.body.parentNode.scrollTop ||
document.body.scrollTop
                }
        }

Reply via email to