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/201201/30faebbbd91eb5f9fe68e4ff5611ac97.jpg'; imgLink[1]='http://www.takingthestage.org/cn/'; imgAlt[1]='“占领舞台”《Caster》'; imgtext[1]='“占领舞台”《Caster》'; imgUrl[2]='http://www.ladyscn.com//uploadfile/201201/c7d397622e210e9abd81f36873a0abaf.jpg'; imgLink[2]='http://blog.sina.com.cn/s/blog_4db9b48d0102dx15.html'; imgAlt[2]='设计的设计 原研哉中国展·上海'; imgtext[2]='设计的设计 原研哉中国展·上海'; imgUrl[3]='http://img03.taobaocdn.com/imgextra/i3/13760177/T2frt9XhFaXXXXXXXX_!!13760177.jpg'; imgLink[3]='http://hobbywood.taobao.com/?spm=1101_ZAl.1-uOkK.3-503Kuv&userId=&shopId=33282325&view_type=&order_t'; imgAlt[3]='Jennifer Beals 经典电影DVD收藏'; imgtext[3]='Jennifer Beals 经典电影DVD收藏'; imgUrl[4]='http://www.ladyscn.com/newsite/home/attachment/201108/31/15_1314812194c7Zn.jpg'; imgLink[4]='http://ladyscn.taobao.com/'; 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('