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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:49:10+00:00 2026-05-31T23:49:10+00:00

I have an element I want to be shown whenever the cursor is moved

  • 0

I have an element I want to be shown whenever the cursor is moved anywhere on the page, and hidden again after a period of cursor inactivity (unless the cursor is hovering on said element).

This is the closest I’ve gotten, the problem being that when hiding the element the animation is played over and over (and over) again, for every pixel moved over. I thought .stop() might be the answer, but if it is I can’t figure out how.

bkLib.onDomLoaded(function() {

setTimeout(function() {
    $("#footer").hide('blind', 500)
}, 5000);

$('html').mousemove(function() {
    if($("#footer").is(':hidden')) {
        $("#footer").show('blind', 500);
    }

    if($("#footer").is(':visible') && !$("#footer").is(':hover')) {
        setTimeout(function() {
            $("#footer").hide('blind', 500);
        }, 5000);
    }
});

});
  • 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-31T23:49:10+00:00Added an answer on May 31, 2026 at 11:49 pm

    Try clearing your timeout before setting another one:

    bkLib.onDomLoaded(function() {
    
    var timeoutID = setTimeout(function() {
        $("#footer").hide('blind', 500)
    }, 5000);
    
    $('html').mousemove(function() {
        if($("#footer").is(':hidden')) {
            $("#footer").show('blind', 500);
        }
    
        if($("#footer").is(':visible') && !$("#footer").is(':hover')) {
            clearTimeout(timeoutID);
            timeoutID = setTimeout(function() {
                $("#footer").hide('blind', 500);
            }, 5000);
        }
    });
    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have an element on my page with id some_id. I want to
I want to have a element that displays in the multiple selection display style
I have a form element that I want to address via javascript, but it
i have some element in my container and want to save all properties of
I have an element in GWT. I want it to float right. I have
I have an element: <select id=row /> I want to append a string to
I have an element, like this: <div id=navleft> </div> I want to make this
With reXml using Ruby, I have a particular element and I want to completely
I have some link elements which are dynamically added and hidden from the page.
I have an XML file of which I have an element as shown; <Event

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.