//Javascript
//交替显示一系列图片
<!-- 动态图开始 -->
<script language=JavaScript>
var imgUrl=new Array();
var imgLink=new Array();
var adNum=0;
imgLink[1]="/z/chn-iran/photo/3712/index.shtml";
imgLink[2]="/z/chn-iran/photo/3712/index.shtml";
imgLink[3]="/z/chn-iran/photo/3672/";
imgLink[4]="/z/chn-iran/photo/3672/";
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>
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。