图片切换效果

<DIV id=oTransContainer
style="FILTER: revealTrans(duration=3,transition=50); WIDTH: 285px; HEIGHT: 233px">
<A href="http://trip.seedsun.com" target=_blank><IMG id=oDIV1 height=233 src="../images/pic01.jpg" width=285 border=0></A>
<A href="http://trip.seedsun.com" target=_blank><IMG id=oDIV2 style="DISPLAY: none" height=233 src="../images/pic02.jpg" width=285 border=0></A>
<A href="http://trip.seedsun.com" target=_blank><IMG id=oDIV3 style="DISPLAY: none" height=233 src="../images/pic03.jpg" width=285 border=0></A>
<A href="http://trip.seedsun.com" target=_blank><IMG id=oDIV4 style="DISPLAY: none" height=233 src="../images/pic04.jpg" width=285 border=0></A>
<A href="http://trip.seedsun.com" target=_blank><IMG id=oDIV5 style="DISPLAY: none" height=233 src="../images/pic02.jpg" width=285 border=0></A></DIV>
</DIV>

 

 

<SCRIPT language=javascript>
var NowImg = 1;
var bStart = 0;
var bStop =0;
var MaxImg = 4;
function fnToggle()
{
var next = NowImg + 1;
if(next == MaxImg+1)
{
NowImg = MaxImg;
next = 1;
}
if(bStop!=1)
{
if(bStart == 0)
{
   bStart = 1;
   setTimeout('fnToggle()', 3000);
   return;
}
else
{
   //oTransContainer.filters[0].Apply();
      oTransContainer.filters.revealTrans.Transition=Math.floor(Math.random()*23);
      oTransContainer.filters.revealTrans.apply();
   document.images['oDIV'+next].style.display = '';
   document.images['oDIV'+NowImg].style.display = 'none';
      oTransContainer.filters.revealTrans.play();
  
   if(NowImg == MaxImg)
    NowImg = 1;
   else
    NowImg++;
}
setTimeout('fnToggle()', 5000);
}
}
fnToggle();
</SCRIPT>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值