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.
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.
I think I would like to see how this is done as well... As well as collapse a div with animation =D
Use Prototype.js from
http://prototype.conio.net/
Effects.js from
http://script.aculo.us/
& Use Function...
Effect.ScrollTo('ElementId',{offset: offsetValue});
Or use this one. Play a bit with the variables till it suits you.
http://www.dynamicdrive.com/dynamici...topcontent.htm
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.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Bookmarks