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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:56:03+00:00 2026-05-16T10:56:03+00:00

This is my code currently: $(function() { $(‘#header_left’).click(function(){ $(‘#header_left_info’).fadeOut(‘fast’); $(‘#header_left’).fadeOut(‘fast’); $(‘#header_left_back’).delay(250).fadeIn(‘fast’); }); }); (the

  • 0

This is my code currently:

$(function() {          
        $('#header_left').click(function(){
            $('#header_left_info').fadeOut('fast');
            $('#header_left').fadeOut('fast');
            $('#header_left_back').delay(250).fadeIn('fast');
        });
});

(the 250 millisecond delay is so that the fades don’t conflict)

Anyway, I’d like to modify this existing code so that it fades #header_left_back out, and #header_left back in – but only after 10 seconds of inactivity by the user. This should be simple, but for a web designer with no previous jQuery experience – it’s really hard. Betcha you coders can figure this out within 20 seconds!

Thank you!

This question has been answered. Thanks!

  • 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-16T10:56:04+00:00Added an answer on May 16, 2026 at 10:56 am

    I think you’re after something like this:

    $(function() {          
      $('#header_left').click(function(){
        $('#header_left_info, #header_left').fadeOut('fast');
        $('#header_left_back').delay(250).fadeIn('fast');
      });
    
      var timer;
      $(document).bind("keypress mousemove", function() {
        clearTimeout(timer);
        timer = setTimeout(function() {
                  $('#header_left_back').fadeOut('fast', function() {
                    $('#header_left').fadeIn('fast');
                  });
                }, 10000);
      });
    });
    

    After 10 seconds of no mouse movement or keyboard action, it would go the fade in the reverse, swapping them back. You could add more events if needed, e.g. mousewheel, mousedown, as specific as you needed to be. Every time an event happens we start a 10 second countdown, if another event happens we clear the timeout and start the 10 seconds over, so only 10 seconds of idle makes the fades happen in reverse.

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

Sidebar

Related Questions

I am currently using this code: $('#startLabel').live('mouseover',function(){ $('.startTooltip').fadeIn(); }); $('#startLabel').live('mouseout',function(){ $('.startTooltip').fadeOut(); }); to display
Currently i have this code setTimeout(function() { $('#hideMsg').fadeOut('fast'); }, 2000); is it possible for
I have this code currently in one of my websites, $(a.navlink).click(function (ev) { ev.preventDefault();
I'm currently using this code, and it does what I want it to $('#about-link').click(function()
I am currently using this code: <script type=text/javascript> $(document).ready(function() { jQuery(#navmain li).click(function(){ jQuery(this).toggleClass(selected); });
I am currently using this code for several images: <script> $(function () { $(img.cat).click(function()
I currently have this code: PACKETS = {}; function AddPacket(data) local id = data.ID;
Currently I got this code: function post_positive(id) { if (window.XMLHttpRequest) { xmlhttp = new
I'm currently using this code: var gallery = $('ul#gallery').children(); $(gallery).filter(':even').not(':last').hover(function () {$(this).toggleClass('next')}); I'm trying
I'm currently using this code for md5 hashing in Delphi 7: function MD5(const fileName

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.