<style type="text/css"> #swsh .swsh_body{height:352px;overflow:hidden;}</style></p> <div id="swsh"> <script language="javascript"> var UDMoveflag=true function scrollStart(object,offset){ object.scrollTop+=offset if (UDMoveflag) timeID=window.setTimeout("scrollStart("+object.id+","+offset+")",10) if (object.scrollHeight<= (object.scrollTop+object.offsetHeight)){ down.style.color="#444444" }else{ down.style.color="#C11020" } if (object.scrollTop==0){ up.style.color="#444444" }else{ up.style.color="#C11020" } } function scrollStop(){ UDMoveflag=false window.clearTimeout(timeID) UDMoveflag=true } </script> <div><img height="10" alt="" width="17" id="up" onmouseover="scrollStart(RightMove1,-1)" onmouseout="scrollStop()" src="images/1G353K27-0.jpg" /></div> <div class="swsh_body" id="RightMove1" style="overflow: hidden">fsdfsf<br /> fsdfsf<br /> fsdfsf<br /> fsdfsf<br /> fsdfsf<br /> fsdfsf<br /> fsdfsf<br /> fsdfsf<br /> fsdfsf<br /> fsdfsf<br /> fsdfsf<br /> fsdfsf<br /> fsdfsf<br /> fsdfsf<br /> fsdfsf<br /> fsdfsf<br /> fsdfsf<br /> fsdfsf<br /> fsdfsf<br /> fsdfsf<br /> fsdfsf<br /> fsdfsf<br /> </div> <div><img height="10" alt="" width="17" id="down" onmouseover="scrollStart(RightMove1,1)" onmouseout="scrollStop()" src="images/1G353J24-1.jpg" /></div> </div>
纵向文字滚动代码,带上下图片控制的。鼠标放到上下图片上时滚动,布布扣,bubuko.com
纵向文字滚动代码,带上下图片控制的。鼠标放到上下图片上时滚动
原文:http://www.cnblogs.com/whlives/p/3880898.html