JQuery scrollTo plugin doesn't work?

JQuery doesn't have a scrollTo method. But you can use scrollTop() help on an object.

JQuery doesn't have a scrollTo method. But you can use .scrollTop()help on an object. $('#pagetop').

ScrollTop(800); Update If you just want an element to scroll into view, you can use the native DOM method: $('#pagetop')0.scrollIntoView(); or even document. GetElementById('pagetop').scrollIntoView(); Demo: http://www.jsfiddle.net/UHhDT/ Update 2 jQuerys scrollTop can also be used in .animate(). $(document.

Body). Animate({scrollTop: $('#pagetop').offset(). Top}, 2000); For instance: Demo: http://www.jsfiddle.net/UHhDT/1.

.scrollTop() does not work either. No errors or anything, simply nothing happens. Also, scrollTo is a jQuery plugin available here: flesler.blogspot.Com/2007/10/jqueryscrollto.

Html – James W. Feb 4 at 7:13 @James: well you should have mentioned that you're using that plugin. – jAndy Feb 4 at 7:16 The .

ScrollIntoView method seemed to do what everything else was incapable of doing. For all practical purposes, this is what I was looking for, but for designs sake, let's say I wanted it do to a sliding animation to make it look nice, how would I do that? For clarification: I basically want to force the user to scroll to the top of the page, I am not moving any elements around.

Thank you. – James W. Feb 4 at 7:18 @jAndy Sorry, I thought that was implied by the jquery-plugins and scrollto tags – James W.

Feb 4 at 7:20 @James: to smooth scroll, you combine .animate() and scrollTop, see update2. And oh.. it looked like experimentX added those tags later on. – jAndy Feb 4 at 7:24.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions