交替顯示一系列圖片
07-10
//Javascript//交替顯示一系列圖片<!-- 動態圖開始 --><script language=JavaScript>var imgUrl=new Array();var imgLink=new Array();var adNum=0;imgUrl[1]="http://image2.sina.com.cn/ty/asian2004/U350P6T189D1F3981DT20040803180803.jpg";imgLink[1]="/z/chn-iran/photo/3712/index.shtml";imgUrl[2]="http://image2.sina.com.cn/ty/asian2004/U350P6T189D1F4252DT20040803180949.jpg";imgLink[2]="/z/chn-iran/photo/3712/index.shtml";imgUrl[3]="http://image2.sina.com.cn/ty/asian2004/U355P6T189D1F4254DT20040624191749.jpg";imgLink[3]="/z/chn-iran/photo/3672/";imgUrl[4]="http://image2.sina.com.cn/ty/asian2004/U355P6T189D1F4256DT20040624191749.jpg";imgLink[4]="/z/chn-iran/photo/3672/";imgUrl[5]="http://image2.sina.com.cn/ty/asian2004/U355P6T189D1F4258DT20040803001422.jpg";imgLink[5]="/z/chn-iran/photo/3672/";var imgPre=new Array();var j=0;for (i=1;i<=5;i++) { if( (imgUrl[i]!="") && (imgLink[i]!="") ) { j++; } else { break; }}function playTran(){ if (document.all) imgInit.filters.revealTrans.play();}var key=0;function nextAd(){ if(adNum<j)adNum++ ; else adNum=1; if( key==0 ){ key=1; } else if (document.all){ imgInit.filters.revealTrans.Transition=6; imgInit.filters.revealTrans.apply(); playTran(); } document.images.imgInit.src=imgUrl[adNum]; theTimer=setTimeout("nextAd()", 6000);}function goUrl(){ jumpUrl=imgLink[adNum]; jumpTarget=『_blank『; if (jumpUrl != 『『){ if (jumpTarget != 『『) window.open(jumpUrl,jumpTarget); else location.href=jumpUrl; }}</script><a href="javascript:goUrl()"><img style="FILTER: revealTrans(duration=2,transition=20);border-color:black;color:#000000" src="javascript:nextAd()" width_=258 height=230 border=1 class=b1 name=imgInit></a><!-- 動態圖結束 -->*********************************************************************************************************************************************************************************************<script language="JavaScript"><!--function objSP_Article() {this.ImgUrl=""; this.LinkUrl=""; this.Title="";}function SlidePic_Article(_id) {this.ID=_id; this.Width=0;this.Height=0; this.TimeOut=5000; this.Effect=23; this.TitleLen=0; this.PicNum=-1; this.Img=null; this.Url=null; this.Title=null; this.AllPic=new Array(); this.Add=SlidePic_Article_Add; this.Show=SlidePic_Article_Show; this.LoopShow=SlidePic_Article_LoopShow;}function SlidePic_Article_Add(_SP) {this.AllPic[this.AllPic.length] = _SP;}function SlidePic_Article_Show() { if(this.AllPic[0] == null) return false; document.write("<div align=『center『><a id=『Url_" + this.ID + "『 href=『『><img id=『Img_" + this.ID + "『 style=『width:" + this.Width + "px; height:" + this.Height + "px; filter: revealTrans(duration=2,transition=23);『 src=『javascript:null『 border=『0『></a>"); if(this.TitleLen != 0) {document.write("<br><span id=『Title_" + this.ID + "『></span></div>");} else{document.write("</div>");} this.Img = document.getElementById("Img_" + this.ID); this.Url = document.getElementById("Url_" + this.ID); this.Title = document.getElementById("Title_" + this.ID); this.LoopShow();}function SlidePic_Article_LoopShow() { if(this.PicNum<this.AllPic.length-1) this.PicNum++ ; else this.PicNum=0; this.Img.filters.revealTrans.Transition=this.Effect; this.Img.filters.revealTrans.apply(); this.Img.src=this.AllPic[this.PicNum].ImgUrl; this.Img.filters.revealTrans.play(); this.Url.href=this.AllPic[this.PicNum].LinkUrl; if(this.Title) this.Title.innerHTML="<a href="+this.AllPic[this.PicNum].LinkUrl+" target=_blank>"+this.AllPic[this.PicNum].Title+"</a>"; this.Img.timer=setTimeout(this.ID+".LoopShow()",this.TimeOut);}//--></script><script language=JavaScript><!--var SlidePic_129 = new SlidePic_Article("SlidePic_129");SlidePic_129.Width = 250;SlidePic_129.Height = 180;SlidePic_129.TimeOut = 5000;SlidePic_129.Effect = 23;SlidePic_129.TitleLen = 40;var oSP = new objSP_Article();oSP.ImgUrl = "/yzzx/Article/UploadFiles/200703/20070322154152536.jpg";oSP.LinkUrl = "/yzzx/Article/ShowArticle.asp?ArticleID=379";oSP.Title = "我校被評為03—06年度平安建設先進集體";SlidePic_129.Add(oSP);var oSP = new objSP_Article();oSP.ImgUrl = "/yzzx/Article/UploadFiles/200703/20070320101125555.jpg";oSP.LinkUrl = "/yzzx/Article/ShowArticle.asp?ArticleID=378";oSP.Title = "南京秦淮區教育代表團和南航附中分別來我校…";SlidePic_129.Add(oSP);var oSP = new objSP_Article();oSP.ImgUrl = "/yzzx/Article/UploadFiles/200703/20070314110537934.jpg";oSP.LinkUrl = "/yzzx/Article/ShowArticle.asp?ArticleID=377";oSP.Title = "全神貫注創佳績,凝心聚力謀發展";SlidePic_129.Add(oSP);var oSP = new objSP_Article();oSP.ImgUrl = "/yzzx/Article/UploadFiles/200703/20070309112505750.jpg";oSP.LinkUrl = "/yzzx/Article/ShowArticle.asp?ArticleID=376";oSP.Title = "我校黨委制定《關於黨風廉政建設責任制的實…";SlidePic_129.Add(oSP);SlidePic_129.Show();//--></script>
推薦閱讀:
推薦閱讀:
※婚姻一不吉之婚姻於命盤之顯現—易有生離之天盤顯示-(2)
※研究顯示切除 HIV-DNA 或將實現永久治癒艾滋病!
※調查顯示58%中國人對美國存好感 為5年來最高值2010年06月23日 16:34中國新聞網【大 中 小】 【列印】 共有評論224條
※觀測數據顯示太陽黑子在12月處於活動高峰期-搜狐IT