/ Published in: JavaScript
This clean little script assumes you have a simple "A-name" style jump to some cool stuff at the bottom of the page that you want people to see. ID your link "browse" and your good. Certainly you could scroll to another ID on the page if you are so inclined.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<!-- the scripty script --> <script type="text/javascript"> window.addEvent("domready", function() { var scroll = new Fx.Scroll(window); $('browse').addEvent('click', function() { scroll.toBottom(); }); }); </script> <!-- sample html --> <a href="javascript:void('false');" id="browse">Look at stuff below</a>