PDA

View Full Version : Scrolling back to top button



Esther55
02-24-2006, 06:39 PM
Hi - new to the forum! Can anyone help with a simple script for a back to the top button that scrolls along the side of your page. Thanks.

KaranSokhey
01-10-2007, 04:22 AM
I think I would like to see how this is done as well... As well as collapse a div with animation =D

vikasbhagwagar
01-10-2007, 01:21 PM
Use Prototype.js from

http://prototype.conio.net/

Effects.js from

http://script.aculo.us/

& Use Function...

Effect.ScrollTo('ElementId',{offset: offsetValue});

chechu
01-10-2007, 03:58 PM
Or use this one. Play a bit with the variables till it suits you.

http://www.dynamicdrive.com/dynamicindex11/topcontent.htm

jscheuer1
01-10-2007, 04:32 PM
Here's another one from DD that is made to do just that (with a link):

http://www.dynamicdrive.com/dynamicindex5/jumptop.htm

It could easily be modified to be with a button.