注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

狼窝

 
 
 

日志

 
 

引用 图片幻灯片

2006-10-21 22:10:02|  分类: 博导 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

 

引用

4beta图片幻灯片

非常完美的图片幻灯片切换方式。于是就查看源代码,整理了一下,真的是非常的好啊!!审核过程没有,切换全部随机!!大家试试看

 

代码如下:

<TABLE cellSpacing=0 cellPadding=0 width="25%" align=center border=0>
<TBODY>
<TR>
<TD height=315>
<SCRIPT language=javascript>
function imgsrcarray2559STR()
   {
 var imgsrcurl  = new Array();
 var imgsrc = new Array();
 var imgalt = new Array();
 imgsrc[0] = "http://photocdn.sohu.com/20060811/Img244741177.jpg";
 
 imgsrc[1] = "http://yule.sohu.com/upload/lxn20060815/1.jpg";
 
 imgsrc[2] = "http://yule.sohu.com/upload/lxn20060815/2.jpg";
 
 imgsrc[3] = "http://yule.sohu.com/upload/lxn20060815/3.jpg";
 
 imgsrc[4] = "http://yule.sohu.com/upload/lxn20060815/4.jpg";
 
 imgsrc[5] = "http://yule.sohu.com/upload/lxn20060815/5.jpg";
 
 loadpic2559STR(imgsrc,imgsrcurl,imgalt);
   }
  </SCRIPT>

<SCRIPT language=JavaScript>
var PICSLIDEIMG2559STR=new Array();
var PICSLIDEIMGlink2559STR=new Array();
var imgalt2559STR = new Array();
var adNum2559STR=0;
var cycle2559STR=4000;
function loadpic2559STR(img,imglink,imgalter)
{
  PICSLIDEIMG2559STR = img;
  PICSLIDEIMGlink2559STR = imglink;
  imgalt2559STR = imgalter;
    var preloadedimages=new Array();
     for (i=1;i<PICSLIDEIMG2559STR.length;i++){
   preloadedimages[i]=new Image();
         preloadedimages[i].src=PICSLIDEIMG2559STR[i];
     }
 }
function setTransition2559STR(){
   if (document.all){
      PICSLIDEIMGNAME2559STR.filters.revealTrans.Transition=Math.floor(Math.random()*23);
      PICSLIDEIMGNAME2559STR.filters.revealTrans.apply();
   }
}
function playTransition2559STR(){
   if (document.all)
      PICSLIDEIMGNAME2559STR.filters.revealTrans.play()
}
function nextIMG2559STR(){
   imgsrcarray2559STR()
   if(adNum2559STR<PICSLIDEIMG2559STR.length-1)adNum2559STR++ ;
   else adNum2559STR=0;
   setTransition2559STR();
   document.images.PICSLIDEIMGNAME2559STR.src=PICSLIDEIMG2559STR[adNum2559STR];
   document.images.PICSLIDEIMGNAME2559STR.alt=imgalt2559STR[adNum2559STR];
   playTransition2559STR();
   theTimer=setTimeout("nextIMG2559STR()", cycle2559STR);
}
function jump2url2559STR(){
   jumpUrl=PICSLIDEIMGlink2559STR[adNum2559STR];
   jumpTarget='_blank';
   if (jumpUrl != ''){
      if (jumpTarget != '')window.open(jumpUrl,jumpTarget);
      else location.href=jumpUrl;
   }
}
function displayStatusMsg2559STR() {
   status=PICSLIDEIMGlink2559STR[adNum2559STR];
}
  </SCRIPT>
<IMG style="FILTER: revealTrans(duration=2,transition=20)" height=285 src="" width=240 border=0 </TD></TR></TBODY></TABLE>

 

 

2

 

代码如下:自行设置表格宽度,更换图片地址

<TABLE borderColor=#663300 cellSpacing=5 cellPadding=5 align=center bgColor=#FFFFFF border=1 valign="middle">
<TBODY>
<TR bordercolor="#663300" bgcolor="#FFFFFF">
<TD width="100%" align=middle>
<DIV style="LEFT: 0px; OVERFLOW: hidden; WIDTH: 330px; ; TOP: 0px; HEIGHT: 230px">
<DIV style="LEFT: 0px; ; TOP: 0px"><?import namespace = t urn = "urn:schemas-microsoft-com:time" implementation = "#default#time2" declareNamespace /><t:SEQ repeatCount = "indefinite"><t:MEDIA style="FILTER: alpha; LEFT: 0px; WIDTH: 330px; ; TOP: 0px" src = "http://img39.photo.163.com/w-lan/7031648/137609811.jpg" dur = "3" fill = "transition" timeContainer = "par"><t:TRANSITIONFILTER from = "0" to = "1" type = "fade" dur = "2"></t:TRANSITIONFILTER></t:MEDIA><t:MEDIA style="FILTER: alpha; LEFT: 0px; WIDTH: 330px; ; TOP: 0px" src = "http://img39.photo.163.com/w-lan/7031648/138182256.jpg" dur = "3" fill = "transition" timeContainer = "par"><t:TRANSITIONFILTER from = "0" to = "1" type = "ClockWipe" dur = "2"></t:TRANSITIONFILTER></t:MEDIA><t:MEDIA style="FILTER: alpha; LEFT: 0px; WIDTH: 330px; ; TOP: 0px" src = "http://img39.photo.163.com/w-lan/7031648/138184950.jpg" dur = "3" fill = "transition" timeContainer = "par"><t:TRANSITIONFILTER from = "0" to = "1" type = "snakeWipe" dur = "2"></t:TRANSITIONFILTER></t:MEDIA><t:MEDIA style="FILTER: alpha; LEFT: 0px; WIDTH: 330px; ; TOP: 0px" src = "http://img39.photo.163.com/w-lan/7031648/138183205.jpg" dur = "3" fill = "transition" timeContainer = "par"><t:TRANSITIONFILTER from = "0" to = "1" type = "ellipseWipe" dur = "2"></t:TRANSITIONFILTER></t:MEDIA></t:SEQ></DIV></DIV></TD></TR></TBODY></TABLE>

  评论这张
 
阅读(117)| 评论(1)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017