乌有之乡图片轮播

来源:互联网 发布:加工中心螺纹编程实例 编辑:程序博客网 时间:2024/04/30 05:23

<script language="JavaScript">
<!--
var navigatorName = "Microsoft Internet Explorer";
var isIE = false;
if(navigator.appName==navigatorName) isIE = true;
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='' target='_blank'><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;
  if(isIE==true){
  this.Img.filters.revealTrans.Transition=this.Effect;
  this.Img.filters.revealTrans.apply();
  }
  this.Img.src=this.AllPic[this.PicNum].ImgUrl;
  if(isIE==true){
  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_243 = new SlidePic_Article("SlidePic_243");
SlidePic_243.Width    = 378;
SlidePic_243.Height   = 223;
SlidePic_243.TimeOut  = 5000;
SlidePic_243.Effect   = 23;
SlidePic_243.TitleLen = 30;
var oSP = new objSP_Article();
oSP.ImgUrl         = "http://www.wyzxsx.com/Article/UploadFiles/201007/2010073113573982.jpg";
oSP.LinkUrl        = "http://www.wyzxsx.com/Article/Class20/201007/169539.html";
oSP.Title         = "郑彪:读懂西方&nbsp;看透美国";
SlidePic_243.Add(oSP);
var oSP = new objSP_Article();
oSP.ImgUrl         = "http://image2.sina.com.cn/jc/2005-06-03/U28P27T1D293939F3DT20050603173503.jpg";
oSP.LinkUrl        = "http://www.wyzxsx.com/Article/Class14/201007/169157.html";
oSP.Title         = "鼓吹美使中国免遭苏联核打击&nbsp;凤凰…";
SlidePic_243.Add(oSP);
var oSP = new objSP_Article();
oSP.ImgUrl         = "http://www.wyzxsx.com/Article/UploadFiles/201007/2010072414522080.jpg";
oSP.LinkUrl        = "http://www.wyzxsx.com/Article/Class4/201007/168078.html";
oSP.Title         = "田义:“转基因”大屠杀及农业部…";
SlidePic_243.Add(oSP);
var oSP = new objSP_Article();
oSP.ImgUrl         = "http://www.wyzxsx.com/Article/UploadFiles/201007/2010072411452026.jpg";
oSP.LinkUrl        = "http://www.wyzxsx.com/Article/Class10/201007/168035.html";
oSP.Title         = "只有毛泽东路线才能挫败美国统治…";
SlidePic_243.Add(oSP);
var oSP = new objSP_Article();
oSP.ImgUrl         = "http://www.wyzxsx.com/Article/UploadFiles/201007/2010072221301513.jpg";
oSP.LinkUrl        = "http://www.wyzxsx.com/Article/Class10/201007/167672.html";
oSP.Title         = "《决战朝鲜》--细腻体察毛泽东出…";
SlidePic_243.Add(oSP);
SlidePic_243.Show();
//-->
</script>

原创粉丝点击