Return to Snippet

Revision: 6067
at April 24, 2008 11:43 by madmanlear


Initial Code
$.fn.scroller = function() {
	var speed = 'slow'; // Choose default speed
	$(this).each(function() {
		$(this).bind('click', function() {
			var target = $(this).attr('href'); // Get scroll target
			$(target).ScrollTo(speed);
			return false;
		});
	});
}

Initial URL


Initial Description
Smooth scroll to anchor links, requires Interface plugin

Initial Title
Jquery Smotth Scroll to Anchor Links

Initial Tags
jquery

Initial Language
JavaScript