var imgWidth=325; //图片宽 var imgHeight=225; //图片高 var TimeOut=5000; //每张图切换时间 (单位毫秒); var imgAlt=new Array(); var imgUrl=new Array(); var imgLink=new Array(); var imgtext=new Array(); var button_off='f_button_off'; //className var button_on='f_button_on'; //className var imgStyle=''; //图片style (注: 不是class) var focustextStyle='height:25px; line-height:25px; text-align:center;'; //焦点文字style (注: 不是class) var textClass=''; imgUrl[1]='http://www.ladyscn.com//uploadfile/200807/e735a46b52858a48de0cb62aef447e24.jpg'; imgLink[1]='http://www.ladyscn.com/ArticleCategory.php?CategoryId=24'; imgAlt[1]='揭秘Twins分合内幕 '; imgtext[1]='揭秘Twins分合内幕 '; imgUrl[2]='http://www.ladyscn.com/uploadfile/article/szk.jpg'; imgLink[2]='http://www.ladyscn.com/shop/'; imgAlt[2]='《深秋小屋手抓刊》08年第六期新鲜出炉'; imgtext[2]='《深秋小屋手抓刊》08年第六期新鲜出炉'; imgUrl[3]='http://www.ladyscn.com//uploadfile/200807/8be5224e8fcb4de4612c35c022c026ad.jpg'; imgLink[3]='http://www.ladyscn.com/ArticleCategory.php?CategoryId=25'; imgAlt[3]='女人比男人更应该出轨'; imgtext[3]='女人比男人更应该出轨'; imgUrl[4]='http://www.ladyscn.com/uploadfile/article/FTF/jz%20%286%29.jpg'; imgLink[4]='http://www.ladyscn.com/bbs/read.php?tid-54606.html'; imgAlt[4]='小屋第一笔捐款10080元捐助的全程跟踪报道'; imgtext[4]='小屋第一笔捐款10080元捐助的全程跟踪报道'; var count=0; for (i=1;i<=imgUrl.length;i++) { if( (imgUrl[i]!="") && (imgLink[i]!="")&&(imgAlt[i]!="")&&(imgUrl[i]!=null) && (imgLink[i]!=null)&&(imgAlt[i]!=null) ) {count++;} else {break;} } function change(i){ window.clearInterval(theTimer); switch(browser){ //ie6 以上版本 case 1 : adNum = i; nextAd_1(); break; //其他浏览器 case 2 : adNum = i-1; nextAd_2(); break; } } /* nextAd_1 */ function nextAd_1() { if(bStart == 0) { bStart = 1; theTimer=setTimeout('nextAd_1()', TimeOut); return; } else { oTransContainer.filters[0].Apply(); for (var i=1;i<=count;i++){ //document.getElementById('focus_summary'+i).style.display="none"; document.getElementById('b'+i).className = button_off; document.images['oDIV'+i].style.display = "none"; } //document.getElementById('focus_summary'+adNum).style.display="block"; document.getElementById('b'+adNum).className = button_on; //document.getElementById('oDIV'+adNum).href=imgLink[adNum]; //document.getElementById('oDIV'+adNum).alt=imgAlt[adNum]; document.images['oDIV'+adNum].style.display = "block"; document.getElementById('f_text').innerHTML=imgtext[adNum]; //document.getElementById('focus_summary').innerHTML= imgSummary[adNum]; oTransContainer.filters[0].Play(duration=2); if(adNum+1 > count) adNum = 1; else adNum++; } theTimer=setTimeout("nextAd_1()", TimeOut); } /* nextAd_2 */ function nextAd_2(){ if(adNum < count) adNum++; else adNum = 1; document.images.imgInit.src=imgUrl[adNum]; document.images.imgInit.alt=imgAlt[adNum]; for (var i=1;i<=count;i++){ document.getElementById('b'+i).className = button_off; //document.getElementById('focus_summary'+i).style.display="none"; } //document.getElementById('focus_summary'+adNum).style.display="none"; document.getElementById('b'+adNum).className = button_on; document.getElementById('f_text').innerHTML=imgtext[adNum]; //document.getElementById('focus_summary').innerHTML= imgSummary[adNum]; document.getElementById('b'+adNum).href=imgLink[adNum]; document.getElementById('b'+adNum).alt=imgAlt[adNum]; theTimer=setTimeout("nextAd_2()", TimeOut); } /* show_1 */ function show_1(){ document.write('