JQuery Change Div Background Color Randomly in html page

JQuery Related Other Post:




JQuery Function of change background:




function changecolor() {
        var colors = ["#B40404""#0000FF""#FE2E9A""#FF0080""#2EFE2E", ];
        var rand = Math.floor(Math.random() * colors.length);
        $('#controls-wrapper').css("background-color", colors[rand]);
        setTimeout('changecolor()', 1000);
    }




Asp.net related Post:

Comments