var links = new Array(); var isIE=!!window.ActiveXObject; links[1] = "http://www.bjxgames.com/x/index.php?m=poster&c=index&a=poster_click&siteid=1&id=27"; if (isIE){ if (document.readyState=="complete"){ statAD('1', '27', '11'); } else { document.onreadystatechange=function(){ if(document.readyState=="complete") statAD('1', '27', '11'); } } } else { statAD('1', '27', '11'); } links[2] = "http://www.bjxgames.com/x/index.php?m=poster&c=index&a=poster_click&siteid=1&id=26"; if (isIE){ if (document.readyState=="complete"){ statAD('1', '26', '11'); } else { document.onreadystatechange=function(){ if(document.readyState=="complete") statAD('1', '26', '11'); } } } else { statAD('1', '26', '11'); } links[3] = "http://www.bjxgames.com/x/index.php?m=poster&c=index&a=poster_click&siteid=1&id=18"; if (isIE){ if (document.readyState=="complete"){ statAD('1', '18', '11'); } else { document.onreadystatechange=function(){ if(document.readyState=="complete") statAD('1', '18', '11'); } } } else { statAD('1', '18', '11'); } links[4] = "http://www.bjxgames.com/x/index.php?m=poster&c=index&a=poster_click&siteid=1&id=17"; if (isIE){ if (document.readyState=="complete"){ statAD('1', '17', '11'); } else { document.onreadystatechange=function(){ if(document.readyState=="complete") statAD('1', '17', '11'); } } } else { statAD('1', '17', '11'); } links[5] = "http://www.bjxgames.com/x/index.php?m=poster&c=index&a=poster_click&siteid=1&id=16"; if (isIE){ if (document.readyState=="complete"){ statAD('1', '16', '11'); } else { document.onreadystatechange=function(){ if(document.readyState=="complete") statAD('1', '16', '11'); } } } else { statAD('1', '16', '11'); } var imgs = new Array(); for(var n = 1; n <= 5; n++) imgs[n] = new Image(); imgs[1].src = "http://www.bjxgames.com/x/uploadfile/2020/0318/20200318054540402.jpg"; imgs[2].src = "http://www.bjxgames.com/x/uploadfile/2020/0313/20200313114234213.jpg"; imgs[3].src = "http://www.bjxgames.com/x/uploadfile/2020/0313/20200313120228214.jpg"; imgs[4].src = "http://www.bjxgames.com/x/uploadfile/2020/0313/20200313120011125.jpg"; imgs[5].src = "http://www.bjxgames.com/x/uploadfile/2020/0313/20200313112050893.jpg"; var tits = new Array(); tits[1] =""; tits[2] =""; tits[3] =""; tits[4] =""; tits[5] =""; var imgwidth = 1000;//图片宽度 var imgheight = 465;//图片宽度 var nums=5; //图片数量 var numtext=""; for(var n=1;n<=nums;n++){ var classname = ""; if(n==1){ classname = "class='on'"; }else{ classname = "class='off'"; } numtext += ""+ n +""; } var str = ""; str += "
"; //修改点1:循环添加内层div内容以增加个数 str += "