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/article/ssqg11.jpg'; imgLink[1]='http://www.ladyscn.com/newsite/bbs/viewthread.php?tid=58493'; imgAlt[1]='史上最“有范”乞丐搭配全攻略'; imgtext[1]='史上最“有范”乞丐搭配全攻略'; imgUrl[2]='http://www.ladyscn.com/uploadfile/article/ok792.jpg'; imgLink[2]='http://www.ladyscn.com/newsite/bbs/viewthread.php?tid=58472'; imgAlt[2]='【热恋】:大S、徐若瑄、AngelaBaby、刘若英'; imgtext[2]='【热恋】:大S、徐若瑄、AngelaBaby、刘若英'; imgUrl[3]='http://www.ladyscn.com/uploadfile/article/myyy.jpg'; imgLink[3]='http://www.ladyscn.com/newsite/bbs/viewthread.php?tid=58492'; imgAlt[3]='玛雅预言真实还是误读?'; imgtext[3]='玛雅预言真实还是误读?'; imgUrl[4]='http://www.ladyscn.com/uploadfile/article/xfa.jpg'; imgLink[4]='http://www.ladyscn.com/newsite/bbs/viewthread.php?tid=58431'; imgAlt[4]='丝袜大潮全球达人出街示范'; imgtext[4]='丝袜大潮全球达人出街示范'; 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('