JS Motion Diagram Effect

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.