首页 >web前端 >js教程 >用javascript实现的图片马赛克后显示并切换加文字功能_图象特效

用javascript实现的图片马赛克后显示并切换加文字功能_图象特效

WBOY
WBOY原创
2016-05-16 19:14:501118浏览


  
    
    
  
  
    
  
  
    
  
用javascript实现的图片马赛克后显示并切换加文字功能_图象特效


    

    

    

    





<script> <BR><!-- <BR>var whichlink=0 <BR>var whichimage=0 <BR>var pixeldelay=(ie55)? document.images.slide.filters[0].duration*1000 : 0 <BR>function slideit(){ <BR>if (!document.images) return <BR>whichlink=whichimage; <BR>if(whichimage<slideimages.length){ <BR>whichimage=whichimage+1; <BR>}else{whichimage=1} <BR>/* <BR>whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0; <BR>whichimage=(whichimage>=slideimages.length)?whichimage=slideimages.length:whichimage; <BR>*/ <BR>if (ie55) document.images.slide.filters[0].apply() <BR>var thesrc=(whichimage-1)>0?thesrc=whichimage-1:0 <BR>document.images.slide.src=imageholder[thesrc].src <BR>if (ie55) document.images.slide.filters[0].play() <BR>text.innerText=(whichimage<slideimages.length+1)? texts[whichimage-1] : 0; <BR>aa.innerText= whichimage; <BR>text1.innerText=(whichimage<slideimages.length+1)? texts1[whichimage-1] : 0; <BR>text2.innerText=(whichimage<slideimages.length+1)? texts2[whichimage-1] : 0; <BR>setTimeout("slideit()",slidespeed+pixeldelay) <BR>} <BR>slideit() <br><br>//--> <BR></script>



声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn