原贴: https://discuz.dismall.com/viewthread.php?tid=188488
优化方法:
把include/ad.js
里面的代码用下面的代替:
- //-- 增加图片后,把 a = 136 后面的数字改成相应条数即可。
- //-- 你也可以把" alt=看啥?这是本站给的回帖鼓励,加油哦!"这句话去掉
- a = 136
- var talet = Math.round(Math.random() * (a-1))+1;
- function create() { this.under = '' }
- b = new Array()
- for(var i=1; i<=a; i++) { b[i] = new create()
- b[i].under = '<img src=images/guajian/'+i+'.gif alt=这是给回帖的鼓励,单击隐藏! onclick=this.style.visibility="hidden" >'
- }
- document.write(b[talet].under);
复制代码
优化完毕.
附上:
//==================原贴的ad.js的代码===================
- //-- 增加图片后,把 a = 136 后面的数字改成相应条数即可。
- //-- 你也可以把"title=看啥?这是本站给的回帖鼓励,加油哦!"这句话去掉
- <!--end Java-->
- <!--
- a = 136
- var slump = Math.random();
- var talet = Math.round(slump * (a-1))+1;
- function create() {
- this.under = ''
- }
- b = new Array()
- for(var i=1; i<=a; i++) { b[i] = new create() }
- b[1].under = '<img src=images/guajian/1.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[2].under = '<img src=images/guajian/2.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[3].under = '<img src=images/guajian/3.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[4].under = '<img src=images/guajian/4.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[5].under = '<img src=images/guajian/5.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[6].under = '<img src=images/guajian/6.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[7].under = '<img src=images/guajian/7.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[8].under = '<img src=images/guajian/8.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[9].under = '<img src=images/guajian/9.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[10].under = '<img src=images/guajian/10.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[11].under = '<img src=images/guajian/11.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[12].under = '<img src=images/guajian/12.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[13].under = '<img src=images/guajian/13.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[14].under = '<img src=images/guajian/14.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[15].under = '<img src=images/guajian/15.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[16].under = '<img src=images/guajian/16.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[17].under = '<img src=images/guajian/17.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[18].under = '<img src=images/guajian/18.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[19].under = '<img src=images/guajian/19.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[20].under = '<img src=images/guajian/20.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[21].under = '<img src=images/guajian/21.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[22].under = '<img src=images/guajian/22.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[23].under = '<img src=images/guajian/23.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[24].under = '<img src=images/guajian/24.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[25].under = '<img src=images/guajian/25.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[26].under = '<img src=images/guajian/26.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[27].under = '<img src=images/guajian/27.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[28].under = '<img src=images/guajian/28.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[29].under = '<img src=images/guajian/29.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[30].under = '<img src=images/guajian/30.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[31].under = '<img src=images/guajian/31.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[32].under = '<img src=images/guajian/32.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[33].under = '<img src=images/guajian/33.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[34].under = '<img src=images/guajian/34.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[35].under = '<img src=images/guajian/35.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[36].under = '<img src=images/guajian/36.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[37].under = '<img src=images/guajian/37.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[38].under = '<img src=images/guajian/38.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[39].under = '<img src=images/guajian/39.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[40].under = '<img src=images/guajian/40.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[41].under = '<img src=images/guajian/41.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[42].under = '<img src=images/guajian/42.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[43].under = '<img src=images/guajian/43.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[44].under = '<img src=images/guajian/44.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[45].under = '<img src=images/guajian/45.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[46].under = '<img src=images/guajian/46.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[47].under = '<img src=images/guajian/47.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[48].under = '<img src=images/guajian/48.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[49].under = '<img src=images/guajian/49.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[50].under = '<img src=images/guajian/50.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[51].under = '<img src=images/guajian/51.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[52].under = '<img src=images/guajian/52.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[53].under = '<img src=images/guajian/53.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[54].under = '<img src=images/guajian/54.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[55].under = '<img src=images/guajian/55.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[56].under = '<img src=images/guajian/56.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[57].under = '<img src=images/guajian/57.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[58].under = '<img src=images/guajian/58.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[59].under = '<img src=images/guajian/59.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[60].under = '<img src=images/guajian/60.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[61].under = '<img src=images/guajian/61.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[62].under = '<img src=images/guajian/62.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[63].under = '<img src=images/guajian/63.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[64].under = '<img src=images/guajian/64.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[65].under = '<img src=images/guajian/65.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[66].under = '<img src=images/guajian/66.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[67].under = '<img src=images/guajian/67.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[68].under = '<img src=images/guajian/68.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[69].under = '<img src=images/guajian/69.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[70].under = '<img src=images/guajian/70.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[71].under = '<img src=images/guajian/71.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[72].under = '<img src=images/guajian/72.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[73].under = '<img src=images/guajian/73.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[74].under = '<img src=images/guajian/74.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[75].under = '<img src=images/guajian/75.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[76].under = '<img src=images/guajian/76.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[77].under = '<img src=images/guajian/77.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[78].under = '<img src=images/guajian/78.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[79].under = '<img src=images/guajian/79.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[80].under = '<img src=images/guajian/80.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[81].under = '<img src=images/guajian/81.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[82].under = '<img src=images/guajian/82.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[83].under = '<img src=images/guajian/83.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[84].under = '<img src=images/guajian/84.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[85].under = '<img src=images/guajian/85.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[86].under = '<img src=images/guajian/86.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[87].under = '<img src=images/guajian/87.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[88].under = '<img src=images/guajian/88.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[89].under = '<img src=images/guajian/89.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[90].under = '<img src=images/guajian/90.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[91].under = '<img src=images/guajian/91.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[92].under = '<img src=images/guajian/92.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[93].under = '<img src=images/guajian/93.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[94].under = '<img src=images/guajian/94.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[95].under = '<img src=images/guajian/95.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[96].under = '<img src=images/guajian/96.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[97].under = '<img src=images/guajian/97.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[98].under = '<img src=images/guajian/98.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[99].under = '<img src=images/guajian/99.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[100].under = '<img src=images/guajian/100.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[101].under = '<img src=images/guajian/101.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[102].under = '<img src=images/guajian/102.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[103].under = '<img src=images/guajian/103.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[104].under = '<img src=images/guajian/104.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[105].under = '<img src=images/guajian/105.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[106].under = '<img src=images/guajian/106.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[107].under = '<img src=images/guajian/107.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[108].under = '<img src=images/guajian/108.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[109].under = '<img src=images/guajian/109.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[110].under = '<img src=images/guajian/110.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[111].under = '<img src=images/guajian/111.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[112].under = '<img src=images/guajian/112.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[113].under = '<img src=images/guajian/113.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[114].under = '<img src=images/guajian/114.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[115].under = '<img src=images/guajian/115.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[116].under = '<img src=images/guajian/116.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[117].under = '<img src=images/guajian/117.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[118].under = '<img src=images/guajian/118.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[119].under = '<img src=images/guajian/119.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[120].under = '<img src=images/guajian/120.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[121].under = '<img src=images/guajian/121.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[122].under = '<img src=images/guajian/122.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[123].under = '<img src=images/guajian/123.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[124].under = '<img src=images/guajian/124.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[125].under = '<img src=images/guajian/125.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[126].under = '<img src=images/guajian/126.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[127].under = '<img src=images/guajian/127.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[128].under = '<img src=images/guajian/128.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[129].under = '<img src=images/guajian/129.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[130].under = '<img src=images/guajian/130.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[131].under = '<img src=images/guajian/131.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[132].under = '<img src=images/guajian/132.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[133].under = '<img src=images/guajian/133.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[134].under = '<img src=images/guajian/134.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[135].under = '<img src=images/guajian/135.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- b[136].under = '<img src=images/guajian/136.gif title=看啥?这是本站给的回帖鼓励,加油哦!>'
- <!--end Java-->
- var visa = "";
- document.write(b[talet].under);
- //-->
复制代码
[ 本帖最后由 lu5266 于 2005-12-7 18:13 编辑 ] |