[jQuery] Re: How to detect window is scroll or not using window.scrollTo()

2009-09-01 Thread KeeganWatkins
Here's the docs: http://docs.jquery.com/CSS/scrollTop On Sep 1, 9:34 am, KeeganWatkins wrote: > @Rupak, > > I'm not sure if this answers your question, but all wrapped sets have > a scrollTop() method that can be used to retrieve or set the scrollTop > value. For example, to determine how far do

[jQuery] Re: How to detect window is scroll or not using window.scrollTo()

2009-09-01 Thread KeeganWatkins
@Rupak, I'm not sure if this answers your question, but all wrapped sets have a scrollTop() method that can be used to retrieve or set the scrollTop value. For example, to determine how far down the page has been scrolled, you can use: var top = jQuery(window).scrollTop(); The same method can be

[jQuery] Re: How to detect window is scroll or not using window.scrollTo()

2009-09-01 Thread Karl Swedberg
Hi Rupak, Not sure what what you mean by "window is scroll" and the question seems like more related to general JavaScript than jQuery in particular, but if you're trying to determine whether the window has been scrolled down, you can use the scrollTop property. For Firefox and IE, you'd