var index=0;timer=null;pics=byId("banner").getElementsByTagName("div");len = pics.length;function slideImage(){var main = byId("main");main.onmouseovuer=function(){// 清除定时器};main.onmouseout=function(){timer=setInterval(function(){index++;if(index>=len){index=0;}changeImage()},2000)}}function changeImage(){for(var i,i<=len,i++){}pics[index].style.display="block";};slideImage();
添加回答
举报
0/150
提交
取消