jQuery 멀티태스킹 스크롤 플러그인

3055 단어 jquery
/***
 @description    jQuery           
 @params auto: true                     #       
         interval: 3000                 #     (  )
         direction: 'forward'           #    -  forward /    - backward
         speed: 500                     #     (  )
         showNum: 1                     #     
         stepLen: 1                     #       
         type: 'horizontal'             #      - horizontal /      - vertical
         prevElement: null              #        
         prevBefore: function() {}      #         
         prevAfter: function() {}       #         
         nextElement: null              #        
         nextBefore: function() {}      #         
         nextAfter: function() {}       #         
         pauseElement: null             #       
         pauseBefore: function() {}     #      
         pauseAfter: function() {}      #      
         resumeElement: null            #       
         resumeBefore: function() {}    #      
         resumeAfter: function() {}     #      
 @author [email protected]
 @url https://github.com/wange1228/marquee-slide
 @blog http://wange.im
 @version 0.4.3
***/

 
demo 주소: http://wange.im/demo/marquee-slide/marquee_slide.html
 
스크롤 영역: div 컨텐트는 다음과 같습니다.
<div id="wrap1" class="wrap">
    <ul>
        <li>1</li>
        <li>2</li>
        <li>3</li>
        <li>4</li>
        <li>5</li>
        <li>6</li>
        <li>7</li>
        <li>8</li>
        <li>9</li>
    </ul>
</div>
<script type="text/javascript">
    $(function() {
        $('#wrap1').marquee();
    })
</script>

 
스크롤 영역의 내용이 div인 경우
<div id="wrap2" class="wrap">
    <div class="ul">
        <div class="li">1</div>
        <div class="li">2</div>
        <div class="li">3</div>
        <div class="li">4</div>
        <div class="li">5</div>
        <div class="li">6</div>
        <div class="li">7</div>
        <div class="li">8</div>
        <div class="li">9</div>
    </div>
</div>
<script type="text/javascript">
    $(function() {
        $('#wrap2').marquee();
    })
</script>

좋은 웹페이지 즐겨찾기