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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T03:11:29+00:00 2026-06-04T03:11:29+00:00

I have this code: js: function change_color(color) { $(body).animate({ backgroundColor:color }, ‘1000’); } setTimeout(function

  • 0

I have this code:

js:

function change_color(color) {
$("body").animate({ backgroundColor:color }, '1000');
}

setTimeout(function () {
    change_color('#4AC900'
    );
}, 500);
setTimeout(function () {
    change_color('#964514'
    );
}, 1500);
setTimeout(function () {
    change_color('#EE0000'
    );
}, 1500);
setTimeout(function () {
    change_color('#FFE303'
    );
}, 1500);
setTimeout(function () {
    change_color('#8E388E'
    );
}, 1500);
setTimeout(function () {
    change_color('#FF00AA'
    );
}, 1500);

and I want to use it repeatedly but putting it in a while loop just crashes the site can anyone help?

Here is the site… its my little brothers site not mine… http://timothy.techbytbone.com/isaac.php

  • 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-04T03:11:30+00:00Added an answer on June 4, 2026 at 3:11 am

    this is all you need:

    jsFiddle demo

    var c = 0;
    var colors = ['#4AC900','#964514','#EE0000','#FFE303','#8E388E','#FF00AA'];
    (function loop(){         
        $('body').stop().animate({backgroundColor : colors[c++%colors.length] }, 1000, loop);  
    })();
    

    (Prest attention that you need to use the jQuery UI to animate the CSS background-color property)

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

Sidebar

Related Questions

I have this code $('#uiAdminPanelMenu li a').hover( function(){ $(this).css('background-color', '#D3E1FA'; }, function(){ $(this).css('background-color', '#F4F4F4');
I have this HTML code: <span id=one>one</span> <div> <span>two</span> </div> <span id=click>click</span> $(#click).click(function(){ $(this).css('color',
I have the following jquery code: jQuery(function(){ jQuery(select#rooms).change(function(){ var options = ''; jQuery.getJSON(/admin/selection.php,{id: jQuery(this).val(),
I have the following js code: $(#mySelector).change(function(){ console.log($(this).length); }); I know this is wrong
I have the next code: js: $('[id^=check-]').change(function(){ var new_id = this.id.replace(/check/, 'new'), real_id =
I have this code: function noti() { document.title = document.title + 1 } setInterval(noti(),
I have this code: function submitTwice(f){ f.action = 'http://mydomain.com/threevideopage.php'; f.target='name'; f.submit(); } I left
So i have this code: function validateText(str) { var tarea = str; var tarea_regex
I am new to asp.net. I have this code: function onSubmitForm() { var formDOMObj
I have this code: public function getRecurringEventsByGrouped($grouped){ $query = SELECT * FROM `event` AS

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.