滚动

 var ii=0;t=demo.scrollTop demo2.innerHTML=demo1.innerHTML function qswhMarquee(){ if (ii==1)return if(demo2.offsetTop-demo.scrollTop<=0) demo.scrollTop-=demo1.offsetHeight else demo.scrollTop++ } setInterval(qswhMarquee,20)

你可能感兴趣的:(滚动)