Home >
Web Front-end >
JS Tutorial >
Update again! MSClass (Class Of Marquee Scroll universal uninterrupted scrolling JS encapsulation class Ver 1.6)_javascript skills
Update again! MSClass (Class Of Marquee Scroll universal uninterrupted scrolling JS encapsulation class Ver 1.6)_javascript skills
WBOY
Release: 2016-05-16 19:19:33
Original
897 people have browsed it
Updated again!MSClass (Class Of Marquee Scroll通用不间断滚动JS封装类 Ver 1.6)
/*MSClass (Class Of Marquee Scroll通用不间断滚动JS封装类) Ver 1.6*\
创建实例: //参数直接赋值法 new Marquee("marquee") new Marquee("marquee","top") ...... new Marquee("marquee",0,1,760,52) new Marquee("marquee","top",1,760,52,50,5000) ...... new Marquee("marquee",0,1,760,104,50,5000,3000,52) new Marquee("marquee",null,null,760,104,null,5000,null,-1)
) 3. In order to obtain the width and height of the scrolling area more accurately, please directly assign the correct width and height to each scrolling unit as much as possible. inline, such as (
...< /table & gt; & lt;/div & gt;) 5. For the scrolling or intermittent scrolling, pay attention to the spacing between the rolling units. At the same time, the visual height and visual width of the container need to be set. The spacing between each scrolling unit can be adjusted by setting the line spacing or the height and width of the cell 6. There is currently no better solution to the problem of automatic line wrapping in LI. It is recommended to convert it into a table (TABLE) form To achieve the same effect 7. For horizontally scrolling text paragraphs, if the end ends with a space " ", please convert the space " " into " " 8. The idea of mouse-over scrolling comes from Flash , so there are certain limitations (only the image or the image with link is allowed in the container, and its automatic line wrapping needs to be prohibited)
Thank you: Zhoujunzhoujun#yuchengtech.com (bug of text scrolling and line skipping) 2007/01/31 Since the release of this program, I have received many emails from friends and made many comments and suggestions. , thank you all for your support! Very good.
However, the new Marquee("marquee",0,1,760,52,50,5000,3000) in the demo code has so many parameters that it is a bit confusing. Haha, it may be confusing to make it in this mode. Know something:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn