Common JS picture scrolling (seamless, smooth, up and down scrolling) code Daquan innerHTML: Set or get htmlscrollheight: Gets the scroll height of the object in the start and end tags of the object. ScrollLeft: Sets or gets the distance between the left edge of the object and the leftmost of the currently visible content in the window scrolltop: Sets or gets the distance between the top of the object and the top of the visible content in the window ScrollWidth: Gets the scroll width of the object offsetheight: Gets the height of the object relative to the layout or the parent coordinate specified by the parent coordinate OffsetParent property offsetleft: Gets the object relative to the canvas or by the offsetParent The OffsetTop property specifies the parent coordinate of the computed left position: Gets the computed top position of the object relative to the layout or the parent coordinate specified by the OffsetTop property offsetwidth: Gets the object relative to the canvas or by the parent coordinate offsetParent The width of the parent coordinate specified by the following property contains scrolling code in four directions, and the bold part needs to be modified to be modified to more complex code, mixed, framed, and limited to the size of the picture. When you increase the width, you should add some pictures (should be to make the total width of all the pictures larger than the settings), even if it is repeated, it will stop after scrolling a while, the picture should not be too big, otherwise under IE scrolling slowly!------------------------- ----------------------------------------------<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">JS Motion Diagram Effect