scrollTo.js functionality

4 posts / 0 new
Last post
joshuagraber
joshuagraber's picture
scrollTo.js functionality

I'd like to be able to use the scrollTo.js smooth scrolling functionality for some other links to anchors on a page I've created. How can I do that?

joshuagraber
joshuagraber's picture
adding scrollTo.js to classes or links

More information: I have several links at the top of a page that I've assigned the same class to. Each link is linked to an anchor further down the page. I'd like to use the smooth scrolling functionality that you've built in with scrollTo.js for those links. I'd prefer to add that functionality to the class, but could also assign it to each link specifically if that's the only way to do it.

ragzor
ragzor's picture
hello!

hello There!

for the scrollTo to work with your custom links along with the same Id(in case of element you are linking to) and the href of the anchor tag(which is linking to the element) have to be same you also need to hook up the links with the plugin using jquery please refer to the docs. http://flesler.blogspot.in/2007/10/jqueryscrollto.html

Thanks alot!
Ragzor

joshuagraber
joshuagraber's picture
which file to edit?

Okay, I've used Drupal for a long time but new to messing with jquery. Which file to I need to edit to hook up the links?

Log in to post comments