Return to Snippet

Revision: 10441
at December 29, 2008 13:35 by esquareda


Updated Code
<!-- 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>

Revision: 10440
at December 29, 2008 12:22 by esquareda


Initial Code
<!-- 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="#" id="browse">Look at stuff below</a>

Initial URL


Initial Description
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.

Initial Title
[MooTools] Easy scroll to bottom

Initial Tags
javascript

Initial Language
JavaScript