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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:57:35+00:00 2026-06-07T18:57:35+00:00

There are similar threads on stack but I didn’t find any suitable for me.

  • 0

There are similar threads on stack but I didn’t find any suitable for me.

I have body background which I want to change after a click.

$('#start').click(function(){
    $(this).fadeOut('slow');
    $('#help').fadeOut('slow');
    $('#exit').fadeOut('slow');

    setTimeout(function(){
             $('body').css('background-image','url(media/note.jpg)');
    },500);
});

So, I want the new background to fadeIn. I’ve tried adding it in every way possible which I could thought of but without luck.

Is there a way to do so?

  • 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-07T18:57:38+00:00Added an answer on June 7, 2026 at 6:57 pm

    You could use jQuery UI library to add a class with a delay, like this:

    $(document).ready(function() {
        $("#start").click(function () {
            $(this).fadeOut('slow');
            $('#help').fadeOut('slow');
            $('#exit').fadeOut('slow');
            $('body').addClass("note", 1000);
        });
    });
    

    ​
    where the class “note” would look like:

    ​.note{
        background-image:url('media/note.jpg');
        /*more styling if you like */
    }​
    

    To use jQuery UI library, make sure to add the following scripts to your html HEAD tag:

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
    <script src="http://ui.jquery.com/latest/ui/effects.core.js"></script>
    

    Check out this jsFiddle for an example: CLICK!

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

Sidebar

Related Questions

I saw there are a couple of similar threads but i could not find
I know there are several threads asking similar questions - but I havent found
I know that there are some threads have a similar issue with this thread.
I'm stumped. There are several threads out there that reference a similar problem, but
I know there a similar threads around, but this is really the first time
I know there are many similar threads out there pertaining to this but I
I have seen similar threads on this QnA, but my specific scenario is as
Similar threads that addresses this are possibly there on SO, but I do not
I know there are similar threads, and I have read them all. However none
I know there are similar forum threads to this one, but I've read them

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.