document.write("
") var imgWidth=288; var imgHeight=230; var _timeOut_=2500; var show_text = true; //是否显示焦点文字 var timeOut=_timeOut_; var timeOut2=_timeOut_/2;//onmouseout img后需要切换的时间 var NowPic=0; //第一张图 var target="_blank"; //打开方式 var button_on ='on'; //当前焦点对应按钮的样式名 var button_off ='';//非当前焦点对应按钮的样式名 //不可修改区域 var imgUrl = new Array(); var imgText = new Array(); var imgLink = new Array(); var imgAlt= new Array(); //var menuList = new Array();//菜单menu var ver=2; //兼容浏览器版本 默认2 为非ie var firstTime=true; var n =-1; imgUrl[++n]='admin/manage/upload/upfiles/20180606213566426642.jpg'; imgText[n]='管理学院学习贯彻《中华人民共和国监...'; imgLink[n]='admin/manage/news/news_show.asp?id=619'; imgAlt[n]='管理学院学习贯彻《中华人民共和国监察法》'; imgUrl[++n]='admin/manage/upload/upfiles/20180529170281878187.jpg'; imgText[n]='重庆医科大学蒲川教授、贵州财经大学...'; imgLink[n]='admin/manage/news/news_show.asp?id=617'; imgAlt[n]='重庆医科大学蒲川教授、贵州财经大学胡健教授应邀来我院做学术讲座'; imgUrl[++n]='admin/manage/upload/upfiles/20180522151567766776.jpg'; imgText[n]='管理学院成功举办第二届“中华诗词群...'; imgLink[n]='admin/manage/news/news_show.asp?id=616'; imgAlt[n]='管理学院成功举办第二届“中华诗词群英会”'; imgUrl[++n]='admin/manage/upload/upfiles/20180521114027402740.jpg'; imgText[n]='管理学院举行“党员讲党课”比赛活动'; imgLink[n]='admin/manage/news/news_show.asp?id=615'; imgAlt[n]='管理学院举行“党员讲党课”比赛活动'; imgUrl[++n]='admin/manage/upload/upfiles/20180514175693279327.jpg'; imgText[n]='“柒”心协力,共创未来——管理学院...'; imgLink[n]='admin/manage/news/news_show.asp?id=611'; imgAlt[n]='“柒”心协力,共创未来——管理学院成功举办5•25心理健康节活动开幕式'; var count=0; for (i=0;i #f_img { width:"+imgWidth+"px;height:"+imgHeight+"px;"); function change(){ if (ver==1){ with($('f_img').filters[0]){ Transition=1; apply(); play(); } } if (firstTime){ firstTime=false;timeOut=_timeOut_/1000;} else{ $('f_img').src=imgUrl[NowPic]; $('f_img').alt=imgAlt[NowPic]; $('f_imgLink').href=imgLink[NowPic]; if (show_text) $('f_text').innerHTML=imgText[NowPic]; for (var i=0;i=imgUrl.length-1)?0:NowPic+1; timeOut=_timeOut_; } theTimer=setTimeout("change()", timeOut); } function b_change(num){ window.clearInterval(theTimer); NowPic=num; firstTime=false; change(); } //draw 渐变line (即css:f_line) function draw_line(){ var div = document.createElement("div"); div.id = 'f_line'; $('f_infoDiv').insertBefore(div,$('f_infoDiv').childNodes.item(0)); } //表现层 start //图片 var a = document.createElement("a"); a.id="f_imgLink"; a.target=target; a.href=imgLink[NowPic]; $('f_imgDiv').appendChild(a); var img = document.createElement("img"); img.id="f_img"; img.width=imgWidth; img.height=imgHeight; img.src=imgUrl[NowPic]; img.alt=imgAlt[NowPic]; a.appendChild(img); //数字按钮 for (var i=count-1;i>=0;i--){ var div_bg = document.createElement("div"); div_bg.id = 'div_bg'+i; div_bg.className='bg'; $('f_buttonDiv').appendChild(div_bg); var a = document.createElement("a"); a.id = 'b'+i; a.className = (i==NowPic+1)?"button_on":"button_off"; a.title=imgAlt[i]; a.innerHTML=i+1; a.href='javascript:b_change('+i+')'; $('div_bg'+i).appendChild(a); var div= document.createElement("div"); $('f_buttonDiv').appendChild(div); } if (show_text) $('f_text').innerHTML = imgText[NowPic]; //表现层 end $('f_img').onmouseover=function(){window.clearInterval(theTimer);} $('f_img').onmouseout=function(){theTimer=setTimeout("change()", timeOut2);} try{ //滤镜版本 new ActiveXObject("DXImageTransform.Microsoft.Fade"); $('f_img').filters[0].play(); ver=1; draw_line(); } catch (e){ver=2;} var theTimer = setTimeout("change()", _timeOut_/1000);