Thanks, Bryan. So if I want to get the viewable width of the screen, would I
call Geometry.getHorizontalScroll?
- Dave
> -------Original Message-------
> From: Bryan McLemore <[EMAIL PROTECTED]>
> Subject: Re: [jQuery] animating off screen
> Sent: Mar 20 '07 16:54
>
> Here is some code from the Geometry lib I've written based on some code
> out of one of my books and whatnot.
>
>
> if (window.innerWidth) { //All but IE
> Geometry.getViewportWidth = function() { return
> window.innerWidth; };
> Geometry.getViewportHeight = function() { return
> window.innerHeight; };
> Geometry.getHorizontalScroll = function() { return
> window.pageXOffset; };
> Geometry.getVerticalScroll = function() { return
> window.pageYOffset; };
> } else if (document.documentElement &&
> document.documentElement.clientWidth) { // IE6 w/ doctype
> Geometry.getViewportWidth = function() { return
> document.documentElement.clientWidth; };
> Geometry.getViewportHeight = function() { return
> document.documentElement.clientHeight; };
> Geometry.getHorizontalScroll = function() { return
> document.documentElement.scrollLeft ; };
> Geometry.getVerticalScroll = function() { return
> document.documentElement.scrollTop; };
> } else if (document.body.clientWidth) { // IE4,5,6(w/o doctype)
> Geometry.getViewportWidth = function() { return
> document.body.clientWidth; };
> Geometry.getViewportHeight = function() { return
> document.body.clientHeight; };
> Geometry.getHorizontalScroll = function() { return
> document.body.scrollLeft; };
> Geometry.getVerticalScroll = function() { return
> document.body.scrollTop; };
> }
>
>
> The Viewport functions will tell you how big the browser window is (
> displayable area only)
>
>
> On 3/20/07, [LINK: MAILTO:[EMAIL PROTECTED]
> [EMAIL PROTECTED] <[LINK: mailto:[EMAIL PROTECTED]
> [EMAIL PROTECTED]> wrote: Hi,
>
> Yesterday I got some great help on how to animate a DIV and move it from
> offscreen left to the middle of the screen. My question now is I want to
> slide that div to off-screen right. The complication is that I don't
> know how big the user's browser is going to be. How can I slide the
> div completely off screen to the right?
>
> Thanks, - Dave
>
> _______________________________________________
> jQuery mailing list
> [LINK: mailto:[EMAIL PROTECTED] [email protected]
> [LINK: http://jquery.com/discuss/] http://jquery.com/discuss/
>
>
> --
> --
> Bryan McLemore
> Kaelten
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/