阅读分析下面一段html代码,下面这段HTML代码的详解 谢谢了

// Set slideShowSpeed (milliseconds)毫秒为单位

var slideShowSpeed = 7000;

// Duration of crossfade (seconds)秒为单位

var crossFadeDuration = 7;

// Specify the image files

var Pic = new Array();

// to add more images, just continue

// the pattern, adding to the array below

Pic[0] = 'tu/pic_top02.jpg'

Pic[1] = 'tu/pic_top03.jpg'

Pic[2] = 'tu/pic_top04.jpg'

Pic[3] = 'tu/pic_top05.jpg'

Pic[4] = 'tu/pic_top06.jpg'

Pic[5] = 'tu/pic_top07.jpg'

Pic[6] = 'tu/pic_top08.jpg'

Pic[7] = 'tu/pic_top09.jpg'

Pic[8] = 'tu/pic_top10.jpg'

Pic[9] = 'tu/pic_top11.jpg'

Pic[10] = 'tu/pic_top12.jpg'

Pic[11] = 'tu/pic_top13.jpg'

Pic[12] = 'tu/pic_top14.jpg'

Pic[13] = 'tu/pic_top15.jpg'

Pic[14] = 'tu/pic_top16.jpg'

Pic[15] = 'tu/pic_top17.jpg'

Pic[16] = 'tu/pic_top18.jpg'

Pic[17] = 'tu/pic_top19.jpg'

Pic[18] = 'tu/pic_top20.jpg'

Pic[19] = 'tu/pic_top01.jpg'

// do not edit anything below this line

var t;

var j = 0;

var p = Pic.length;

var preLoad = new Array();

for (i = 0; i < p; i++) {

preLoad[i] = new Image();

preLoad[i].src = Pic[i];

}

function runSlideShow() {

if (document.all) {

document.images.SlideShow.style.filter="blendTrans(duration=2)";

document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";

document.images.SlideShow.filters.blendTrans.Apply();

}

document.images.SlideShow.src = preLoad[j].src;

if (document.all) {

document.images.SlideShow.filters.blendTrans.Play();

}

j = j + 1;

if (j > (p - 1)) j = 0;

t = setTimeout('runSlideShow()', slideShowSpeed);

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值