文件名称:超炫JS代码,如同flash的图片轮换
文件大小:248KB
文件格式:RAR
更新时间:2012-05-13 09:23:18
JS,首页设计,图片旋转
图片轮换。实现flash效果 var currslid = 0; var slidint; function setfoc(id){ document.getElementById("focpic").src = picarry[id]; document.getElementById("foclnk").href = lnkarry[id]; document.getElementById("fttltxt").innerHTML = ''+ttlarry[id]+''; currslid = id; for(i=0;i<6;i++){ document.getElementById("tmb"+i).className = "thubpic"; }; document.getElementById("tmb"+id).className ="thubpiccur"; focpic.style.visibility = "hidden"; focpic.filters[0].Apply(); if (focpic.style.visibility == "visible") { focpic.style.visibility = "hidden"; focpic.filters.revealTrans.transition=23; } else { focpic.style.visibility = "visible"; focpic.filters[0].transition=23; } focpic.filters[0].Play(); stopit(); } function playnext(){ if(currslid==5){ currslid = 0; } else{ currslid++; }; setfoc(currslid); playit(); } function playit(){ slidint = setTimeout(playnext,4500); } function stopit(){ clearTimeout(slidint); } window.onload = function(){ playit(); }
【文件预览】:
067_98ee
----css()
--------css.css(2KB)
----images()
--------02.jpg(24KB)
--------01.jpg(37KB)
--------03.jpg(39KB)
--------04.jpg(54KB)
--------arrow3.gif(67B)
--------05.jpg(55KB)
--------06.jpg(37KB)
----js()
--------AutoChangePhoto.js(1KB)
----index.htm(3KB)