.login:hover{color:#d21919;} footer{width:100%;height:200px;background:#fff;} .mid{width:1100px;height:200px;margin:0 auto;} .about_us{width:900px;height:46px;margin-top:40px;position:absolute;border-bottom: #eaeaea solid 1px;float:left;} .about_us li a{font-size:14px;color:#999;} .about_us li a:hover{font-size:14px;color:#666;} .about_us ul{background:#fcf;} .about_us li{float:left;margin-right:52px;} .copyright{color:#c8c8c8;font-size:12px;position:absolute;margin-top:130px;float:left;} .erweima{width:112px;height:112px;border-radius: 4px 4px 4px 4px;border:#eaeaea solid 1px;background:#fff;float:right;margin-top: 30px;} h5{font-size:12px;color:#666;float:right;margin:146px -111px 0 0;} #activity{position:absolute;z-index:9999;right:0;top} var start = 1; var pic = new Array(); pic[0] = "https://www.epanel.cn/panel/data/upload/admin/20180109/5a54644a0aecd.jpg";pic[1] = "https://www.epanel.cn/panel/data/upload/admin/20180109/5a545e56273ee.png";pic[2] = "https://www.epanel.cn/panel/data/upload/admin/20180109/5a545e9010ed1.png"; var end = pic.length; function bodybackground(){ if(start == end){ start = 0; } $("body").css('background','url("'+pic[start]+'") no-repeat center top'); console.log(pic[start]); start++; } $(function(){ setInterval(bodybackground,5000); });