This article is mainly on the js+div to achieve the picture scrolling effect of the sample code is introduced, the need for friends can come to the reference, I hope to help you.
Transverse <div id=demo style= "overflow:hidden;width:200px;border:2px solid #e0e0e0;p adding:2px;" Onmouseover= " Stopscroll (); " onmouseout= "DoScroll ()" > <div id= "demo1" style= "white-space:nowrap;padding:0" > <a href= "Javascript:alert (' Publish new stickers ');" ><img src= "Picture url" height=20 width=104 border=0></a> <a "href=" (' Post a reply '); ><img src= "Picture url" height=20 width=104 border=0></a> </div> </div> <!--scrolling javascript--> <script> var t=demo.scrollwidth demo1.innerhtml+= demo1.innerhtml function Domarquee () { demo.scrollleft=demo.scrollleft< demo.scrollwidth-demo.offsetwidth?demo.scrollleft+1:t-demo.offsetwidth } function DoScroll () { sc=setinterval (domarquee,20) } function Stopscroll () { Clearinterval (SC) } doscroll () </SCript> <!--scrolling JavaScript end--> longitudinal <div id= "demo" style= "height:110px"; Overflow:hidden "> <div id=" demo1 "> <a href=" Javascript:alert (' Publish new post '); " ><img src= "Picture url" height=20 width=104 border=0></a> <a "href=" (' Post a reply '); ><img src= "Picture url" height=20 width=104 border=0></a> </div><div id= "Demo2" ></div> <!--scrolling javascript--> <script> var speed=100 demo2.innerhtml= demo1.innerhtml function Marquees () { if (demo2.offsettop-demo.scrolltop<=0) demo.scrolltop-= demo1.offsetheight else{ demo.scrolltop++ } } var mymars=setinterval (Marquees,speed) Demo.onmouseover=function () {clearinterval (mymars)} demo.onmouseout=function () {MyMars=setInterval ( Marquees,speed)} zlselect (' 6 '); </script><!--scrolling JavaScript end--> </div>