|
90", "#996731"]; var bgColor = Math.ceil(Math.random() * (bgColorList.length - 1)); $("body").css({"background-color": bgColorList[bgColor], "background-size": "cover"}); } else { var backgroundnum = 6; var backgroundimg = "url(/background/bg-x.jpg)".replace(/x/gi, Math.ceil(Math.random() * backgroundnum)); $("body").css({"background": backgroundimg, "background-attachment": "fixed", "background-size": "cover"}); } })