On Mar 20, 2007, at 1:14 PM, Robert O'Rourke wrote:
> [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 >> >> > > The user's browser width should always be 100%. Kind of a CSS > variable. > Perhaps use jQuery to get that value and then shove the div off by > 50%. > One thing you want to watch out for is converting things to pixel > dimensions so if I maximise my screen after the div has disappeared > off > the side I mightbe able to see it again. Use % to offset the div > and you > should be fine. > > Rob Just to be safe, you might want to hide the div after you've animated it out of the viewable area. Putting $(this).hide() in the callback of .animate() should do the trick. --Karl _________________ Karl Swedberg www.englishrules.com www.learningjquery.com _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/