Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getYOffset()
- {
- if ( typeof(window.pageYOffset)=='number' ) return window.pageYOffset;
- else
- {
- var B = document.body; //IE 'quirks'
- var D = document.documentElement; //IE with doctype
- D = (D.clientHeight) ? D: B;
- return D.scrollTop;
- }
- }
Add Comment
Please, Sign In to add comment