图片滚动停顿

<Script Language="JavaScript">
   var oState = 'oImg1';
   function filterImg(){
      oDiv.filters[0].Apply();
      switch(oState){
        case 'oImg1' :
          oState = 'oImg2';
          self['oImg1'].style.visibility = 'visible';
          self['oImg2'].style.visibility = 'hidden';
          self['oImg3'].style.visibility = 'hidden';
		  self['oImg4'].style.visibility = 'hidden'; 
          break;
        case 'oImg2' :
          oState = 'oImg3';
          self['oImg1'].style.visibility = 'hidden';
          self['oImg2'].style.visibility = 'visible';
          self['oImg3'].style.visibility = 'hidden'; 
		  self['oImg4'].style.visibility = 'hidden'; 
          break;        
        case 'oImg3' :
          oState = 'oImg4';
          self['oImg1'].style.visibility = 'hidden';
          self['oImg2'].style.visibility = 'hidden';
          self['oImg3'].style.visibility = 'visible';
		  self['oImg4'].style.visibility = 'hidden'; 
          break;
		case 'oImg4' :
          oState = 'oImg1';
          self['oImg1'].style.visibility = 'hidden';
          self['oImg2'].style.visibility = 'hidden';
          self['oImg3'].style.visibility = 'hidden';
		  self['oImg4'].style.visibility = 'visible'; 
          break;
        default :
          break;
      }
      oDiv.filters[0].Play();
      setTimeout('filterImg()',1500);
   }
   function stop(){
		oDiv.filters[0].Apply();
		oDiv.filters[0].Stop();
   }
</Script>
<body οnlοad="setTimeout('filterImg()',0);">
<div id="oDiv" style="position:absolute;left:expression(document.body.clientWidth/2-50);top:expression(document.body.clientHeight/2-50);width:100px;height:100px;filter:progid:DXImageTransform.Microsoft.Slide(slideStyle='hide',bands=1,duration=0.1500);">
     <a href="http://www.lamking.com"><img id="oImg1" src="1.jpg" onmouseover ="stop()" style="width:100px;height:100px;visibility:hidden;position:absolute;border:0;top:0px;left:0px;"></a>
     <a href="http://www.lamking.com"><img id="oImg2" src="2.jpg" style="width:100px;height:100px;visibility:hidden;position:absolute;border:0;top:0px;left:0px;"></a>
     <a href="http://www.lamking.com"><img id="oImg3" src="3.jpg" style="width:100px;height:100px;visibility:hidden;position:absolute;border:0;top:0px;left:0px;"></a>
	 <a href="http://www.lamking.com"><img id="oImg4" src="4.jpg" style="width:100px;height:100px;visibility:hidden;position:absolute;border:0;top:0px;left:0px;"></a>
</div>
</body>

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值