//alert('31'); var aADImage = new Array(); var aLINKTO = new Array(); aLINKTO[0] = "count.php?bnid=24" aADImage[0] = "banner/090720092644_91.gif" aLINKTO[1] = "count.php?bnid=23" aADImage[1] = "banner/090717120112_83.jpg" aLINKTO[2] = "count.php?bnid=21" aADImage[2] = "banner/090617193002_90.gif" aLINKTO[3] = "count.php?bnid=20" aADImage[3] = "banner/090609180723_94.gif" aLINKTO[4] = "count.php?bnid=18" aADImage[4] = "banner/090514120833_66.gif" aLINKTO[5] = "count.php?bnid=17" aADImage[5] = "banner/090514101406_98.gif" aLINKTO[6] = "count.php?bnid=3" aADImage[6] = "banner/080709091317_21.gif" var Pstart = 0; //var iImageNo = 7; var iPosNo = 3; var iImageNo = aADImage.length; //var iPosNo = 4; //顯示AD的數量 function plusnum() { Pstart++; if (Pstart > iImageNo-1) Pstart = 0; } function ad_goto(sImg) { var sURL; // 根據圖片名稱取得超連結 for (var i=0; i0) { if (aLINKTO[i]=="") { return(false); } else { sURL = aLINKTO[i]; window1 = window.open(""); window1.opener = window; window1.location.href = sURL; } } } } function show_ad() { var imgaPoint = ""; for (var i=0; iiImageNo) { // 解決當iImageNo=1時的問題 plusnum(); Pstart = Pstart - (iPosNo % iImageNo); // Pstart = Pstart + (1- (iPosNo % iImageNo)); } else if (iPosNo==iImageNo) { plusnum(); } else if (iPosNo