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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:59:56+00:00 2026-05-13T19:59:56+00:00

What I want is: when the page loads – the background has color red

  • 0

What I want is:

when the page loads – the background has color red
after 10 seconds the bgColor changes to green with a fade in fade out animation…
after another 10 seconds it changes to orange….then again to red and so on..

Could someone 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-05-13T19:59:56+00:00Added an answer on May 13, 2026 at 7:59 pm

    Use setinterval with a callback that changes the background:

    $("document").ready(function() {
        var colours = [ "blue", "orange", "pink" ];
        var counter = 0;
        function cycleBackground() {
            $("body").animate({ backgroundColor: colours[counter] }, 500 );
            counter++;
            if(counter == colours.length) {
                counter = 0;
            }
        }
        setInterval(cycleBackground, 10000);
    });
    

    You will need to use jQuery UI’s animate function if you want to smoothly cycle between colors.

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

Sidebar

Related Questions

When users want effects to happen between page loads (ie, old content fades out
I have an image that I want to fade in once the page loads.
I want to fade in a CSS page background image with jQuery when my
I want to be able to submit a form after a page loads automatically
I want the button to display exactly 2 minutes after the page loads. Is
Overview I have div#lead_form that SlideDown in 5 seconds after page loads. And in
When my Silverlight page loads, I want to set focus on a control. Simple
I have a stripes action page. and When the page loads, I want to
I want to display the datepicker when page loads $(#dp).datepicker(show) ; but it is
When the page loads, I want to use Javascript/Jquery to automatically take the user

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.