Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6070511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:56:31+00:00 2026-05-23T09:56:31+00:00

heres some background info: I want to make a menu where clicking on a

  • 0

heres some background info:

I want to make a menu where clicking on a link scrolls to a specific div within a div. the ‘separate div that contains the div i want to scroll to’ is also draggable with the dragscroll plugin. because of this, the links cannot be in the same div that will be scrolling. the link menu is outside the draggable div completely.

I have both plugins playing nice with eachother. the div can be drag-scrolled. but when i click on a link the ENTIRE page scrolls down a little instead of the content within the draggable div scrolling.

how can i bring the scope of the scrollto plugin down so it only tries to scroll within my div?

thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T09:56:31+00:00Added an answer on May 23, 2026 at 9:56 am

    I’m not quite sure what you mean by ‘dragscroll’ plugin, but is this what you’re after?

    $(".link").click(function() {
        // grab the href from the link, it should correspond with the ID of the element you want to scroll to
        var id = $(this).attr("href");
    
        // tell your container to start scrolling to the element
        $("#yourDraggableContainer").scrollTo($(id), 800);
    
        // prevent default behaviour of links
        return false;
    });
    

    jsFiddle: http://jsfiddle.net/Kat8t/10/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Some background info I am programming in a system that uses a proprietary programming
I would really like some advice here, to give some background info I am
Heres a simple php script that generates some XML: <?php // create doctype $dom
html- <div class=hbg> </div> some menu items here jquery for mouser over on menu
Here's some background info. I have three MySQL tables (all InnoDB). The first table
Background Info I'm fiddling around with some PHP and AJAX at the moment, to
I want something to look like a typical forum post where some user info
The following is some background info on this post. You can just skip to
I want to remove some rogue HTML from a DB field that is supposed
Can't change the body background for some reason, here is how I am trying

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.