troubleshooting Question

How to set the scroll point of a jquery.localscroll plugin

Avatar of JOHNFROG
JOHNFROG asked on
2 Comments1 Solution557 ViewsLast Modified:
I have a localscroll plugin the same as you see in the "what we do' section of this link

I have converted the entire page to an aspx but lets assume all the html is the same.

My question is - How would I force say the 3rd item to be the one that is displayed on form load?

I am a newbie to javascript but have been playing around with using a  RegisterStartupScript to immediately scroll to the 3rd (or any nominated) section.

My problem is I cannot find the right code that will perform this for me.

Here is a link to the page I have been trying to interpret fro a solution. (This is the actual pluggin I am working with.)

So, how can I override the default position (being the first div) and  determine the visible section of the wrapper div on form_load.

Here is the current code from the plugins.js file.

            $.localScroll.defaults.axis = 'y';
                  target:  '#services-container',
                  queue:    true,
                  margin:   true,
                  duration: 1000

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros