';adidstr += data.list[j].PlaceInfo.AdInfo.AdID + ",";} } htmlstr += '
';for (var i = 0;i < count;i++) { htmlstr += '';} htmlstr += "
";$("#solidlog").html(htmlstr);adidstr = adidstr.substr(0, adidstr.length - 1);$("#adids").attr("src", adidstr);} else { $("#switchlog").css("display", "none");} } $("#solidlog ul li").eq(0).fadeIn(400);$("#bttlog span").eq(0).css("background", "#ffffff");$("#solidlog .solidlog0").fadeIn(50);$("#solidlog ul li,#bttlog span").mouseenter(function () { window.clearInterval(int);});$("#bttlog span").mouseenter(function () { if ($(this).index() != now) { now = $(this).index() - 1;clock();} });var int = self.setInterval("clock()", 3000);$("#solidlog ul li,#solidlog span").mouseleave(function () { int = self.setInterval("clock()", 3000);});$("#bttlog span").eq(1).css("margin-left", "36px");$("#bttlog span").eq(2).css("margin-left", "70px");} });});var now = 0;function clock() { var total = imgcount;if (total <= 1) { return } var cname;if (now == total - 1) { now = 0;} else { now = now + 1;} for (i = 0;i < total;i++) { cname = "#solidlog .solidlog" + i;$("#solidlog ul li").eq(i).css("display", "none");$("#bttlog span").eq(i).css("background", "#e7e3e0");$(cname).css("display", "none");} cname = "#solidlog .solidlog" + now;$("#solidlog ul li").eq(now).fadeIn(400);$("#bttlog span").eq(now).css("background", "#ffffff");$(cname).css("display", "block");} function advert(i) { var ubp = { "w.action": "advert", "w.page": "logout_home^lb_kfypc", "w.city": cityName, "w.business": "开发云", "w.position": "banner广告位" + i };_ub.collect(ubp);}