script.aculo.us Scroll to top of page

/* Scroll to Top of Page Functino */
var scroll = { top: function(event) { new Effect.ScrollTo(‘top’, {duration: 1.0}); } }

in html place something like:

<div id=”top” style=”visibility:hidden;”></div>

in onclick or elsewhere place:

scroll.top();

Comments are closed.