Having trouble getting Ariel Flesler's ScrollTo working?

Up vote 1 down vote favorite share g+ share fb share tw.

I've been trying to implement Ariel Flesler's ScrollTo plugin, but I can seem to figure out how to initiate it. This is his website: flesler.blogspot.com/ What I would like to do is have a static navigation, and when the user clicks a nav link, the content scrolls within a particular div. I have a pretty good understanding of jQuery, and it seems like this plugin should be really easy to use, but the documentation kinda sucks for demonstrating how to actually use it.

Jquery plugins navigation scroll scrollto link|improve this question asked Oct 20 '10 at 17:35Robert Pessagno398 43% accept rate.

2 Sounds like it'd be simpler to use jQuery .animate() than a whole plugin for what you describe. – Peter Ajtai Oct 20 '10 at 17:46.

Peter is right, you can do this: $(document). Ready(function(){ $('ahref*=#'). Click(function() { if (location.pathname.

Replace(/^\//,'') == this.pathname. Replace(/^\//,'') && location. Hostname == this.

Hostname) { var $target = $(this. Hash); $target = $target. Length && $target || $('name=' + this.hash.

Slice(1) +''); if ($target. Length) { var targetOffset = $target.offset(). Top; $('html,body') .

Animate({scrollTop: targetOffset}, 1000); return false; } } }); }).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions