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 8355413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:51:17+00:00 2026-06-09T09:51:17+00:00

I was recently asked how to create a horizontal page height progress bar with

  • 0

I was recently asked how to create a horizontal page height progress bar with jQuery, similar to the one here: http://www.piccsy.com/investors/ . I’ve looked around and have been unable to find anything, both through Google searches and the old jQuery plugin library.

Does anyone know how this effect can be achieved? I’d assume it’d have something to do with $(‘#containerDiv’).scrollTop(), but I have zero familiarity with that method.

  • 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-09T09:51:18+00:00Added an answer on June 9, 2026 at 9:51 am

    You were correct with using scrollTop();

    This is an example using the window height, but could easily be applied to a container div.

    $(document).scroll(function(){
    var theDistance =  $(window).scrollTop(),
          theHeight = $(document).height(),
      heightPercent = theDistance/theHeight*100;
    
      console.log(heightPercent);
    
    });
    

    see example: http://jsbin.com/ikakim/1/edit

    This will log to your browser console the distance you are from the top of the scroll area in percent. So if you are half way down, heightPercent will be “50” – from here you can set a horizontal line width or something to be 50% of its total size.

    Note that there may be some issues when hitting the bottom (currently logs ~ 97 max) due to the scrollbar height.

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

Sidebar

Related Questions

I was recently asked to create a web page using a static website generator,
Recently I have asked a question about what I should use to create self-contained
I recently asked a question about creating elements with jquery. Specifically I needed input
All, I was recently asked in one of the technical interviews to write a
I have a webpage and I was recently asked to create the mobile version
I recently asked a similar question Close Colorbox iframe after form submit and then
I was looking at interview questions and I recently came upon one that asked
I was recently asked to create a program to find best matches in text
So recently, I asked a question about a class I created that extended SQLiteOpenHelper
I recently asked a question about formatting JavaScript code in Vim. And I've also

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.