Answers
大体思路就是做20张不同位置的亮度图片
js代码为:
<script type="text/javascript">
(function(){
function chagesimagesrc(t){
document.getElementById("tt").childNodes[0].src="images/"+t+".jpg";
}
setInterval(function(){
for(var i=0;i<2;i++){
setTimeout((function(t){
return function(){
chagesimagesrc(t);
}
})(i+1),i*100)
}
},1000);
})()
</script>
html代码:
<div id="tt"><img src="images/1.jpg" alt=""/> </div>
沉默的乌鸦
answered 10 years, 8 months ago