网页上面图片轮换显示特效

发布网友 发布时间:2022-04-23 16:31

我来回答

1个回答

热心网友 时间:2023-10-09 11:17

<script language=Javascript>
<!-- // BannerAD
var bannerAD=new Array();
var adNum=0;
bannerAD[0]="images/fj/fj1.jpg";
bannerAD[1]="images/fj/fj2.jpg";
bannerAD[2]="images/fj/fj3.jpg";
bannerAD[3]="images/fj/fj4.jpg";
var preloadedimages=new Array();
for (i=1;i<bannerAD.length;i++){
preloadedimages[i]=new Image();
preloadedimages[i].src=bannerAD[i];
}
function setTransition(){
if (document.all){
bannerADrotator.filters.revealTrans.Transition=Math.floor(Math.random()*23);
bannerADrotator.filters.revealTrans.apply();
}
}
function playTransition(){
if (document.all)
bannerADrotator.filters.revealTrans.play()
}
function nextAd(){
if(adNum<bannerAD.length-1)adNum++ ;
else adNum=0;
setTransition();
document.images.bannerADrotator.src=bannerAD[adNum];
playTransition();
theTimer=setTimeout("nextAd()", 5000);
}
//-->
</script>
<IMG style="FILTER: revealTrans(ration=2,transition=20)" src="images/fj/fj1.jpg" width="620" height="420" border=0 name=bannerADrotator>
<script language=Javascript>nextAd()</script>

参考资料:http://uncopy.cn/

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com