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

  • Home
  • SEARCH
  • 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 7985157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:29:01+00:00 2026-06-04T11:29:01+00:00

I have set up an comment button that is link to comment section of

  • 0

I have set up an comment button that is link to comment section of the page, it’s like this
Comments

Demo on this page http://stramaxon.blogspot.com/2012/04/how-to-remove-shadows-from-pictures-in.html#disqus_thread

When you click it, you will be taken to the comments section, now i want the scrolling to be smooth, i know it is possible but can’t find the key to achieve it. I am sure intelligent web designers in Stackoverflow will help me out.

I want it to be like this, check this page http://www.labnol.org/internet/bing-background-for-google-homepage/21303/

Scroll down and you will see a back to top button, it’s so smooth i love it and want something like that.

  • 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-06-04T11:29:02+00:00Added an answer on June 4, 2026 at 11:29 am
    $("#topBtn").click(scrollToTop);
    
    function scrollToTop()
    {
        $('html, body').animate({scrollTop:0}, 1000);
    }
    

    should work

    EDIT: that’s for a non href, when you wanna use it on a href you should to it like this

    function scrollToTop()
    {
        $('html, body').animate({scrollTop:0}, 1000);
        return false;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a promotional Facebook page set up which anyone is allowed to comment
I have a page with multiple comment boxes. When someone clicks the submit button
I hope I am clear enough. My data set is populated I have comment:CommentVO;
I have a set of Java 5 source files with old-style Doclet tags, comments
I have the CakePHP Comments Plugin set-up correctly, I believe. I've followed the poorly-written
I have the following function which fetches more comments beyond the 20 that are
I have an Movie Clip in Flash that have subobject of button type which
I have a UITableViewController and I set some properties in the viewDidLoadMethod like so:
I know that this question has been asked loads of times, but I have
Okay, so I have the form set to my PHP page. I also have

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.