Gimme.Screen.getScrollPosition()

Retrieves the currently scrolled position of the browser as an object literal in the form { x: horizScroll, y: vertScroll }.

Returns: An object literal in form { x: horizScroll, y: vertScroll }
Params: None

Examples:
var scrollPos = Gimme.Screen.getScrollPosition();
alert('Browser is scrolled ' + scrollPos.x + ' in the horizontal direction and ' + scrollPos.y + ' in the vertical direction');

Last edited Jan 10, 2008 at 6:11 AM by sstchur, version 1

Comments

No comments yet.