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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:03:43+00:00 2026-06-15T14:03:43+00:00

I am trying to duplicate the floating search options bar on Nike’s Website .

  • 0

I am trying to duplicate the floating search options bar on Nike’s Website. It appears that it’s position is fixed to the bottom when one scrolls far enough to reach the bottom of the options bar and when scrolling back up becomes fixed to the top when one reaches the top of the options bar.

I am sure this is a simple jquery script but being a novice I have not been able to figure out how this is done.

Here is the jQuery script I am using:

google.load("jquery", "1");

function sticky_relocate() {

    var window_top = $(window).scrollTop();

    var div_top = $('#sticky-anchor').offset().top;

    if (window_top > div_top)    
        $('#sticky').addClass('stick')
    else    
        $('#sticky').removeClass('stick');

}

google.setOnLoadCallback(function() {

    $(window).scroll(sticky_relocate);    
    sticky_relocate();

});

Thanks for your help!

  • 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-15T14:03:44+00:00Added an answer on June 15, 2026 at 2:03 pm

    Seems pretty straight forward, when you’re scrolling check to see if it’s going up or down.

    If it’s going down then have it scroll with the page, until it reaches the bottom, then fix the position.

    If you’re going up, basically do the same thing. Scroll with the page until you hit the top, then it stays.

    Have you tried writing the code for this?
    Also, can you post your page source so i can try and code it also?

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

Sidebar

Related Questions

Possible Duplicate: Trying to construct a tableview with a navigation bar at top I
I'm trying to find duplicate keys so that they can be addressed and made
I am trying to duplicate a text report that was written in Icon in
We are trying to duplicate one of our informix database on a test server,
I'm trying to duplicate the effect used in the Firefox search box where, if
I am trying to duplicate the site notice banner that is displayed on the
First time I am trying duplicate key to have insert and update in one
trying to duplicate some PHP code in C#. The PHP code uses the uniqid
I'm trying to duplicate a table using phpmyadmin. It generates the following query: CREATE
I'm trying to duplicate this, http://jqueryui.com/demos/autocomplete/#remote-jsonp . Only, instead of querying the geonames.org server

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.