0) { if (adcount > 0) { childels[0].innerHTML = code.replace("{img}", 'https://gif.laipeitu.com/gif301.ashx').replace("{name}", wzData[imgnum]).replace("{adurl}", zlHref); } if (adcount == 2 && childels.length > 6) { imgnum = Math.floor(Math.random() * wzData.length); childels[childels.length - 1].innerHTML = code.replace("{img}", 'https://gif.laipeitu.com/gif301.ashx').replace("{name}", wzData[imgnum]).replace("{adurl}", zlHref); } } } }