자동으로 넘기는 법

자동으로 넘기는 법

QA

자동으로 넘기는 법

답변 1

본문

<script type="text/javascript">
            $(function() {

                var Page = (function() {

                    var $grid = $( '#bb-custom-grid' );
                    return {

                        init : function() {

                            $grid.find( 'div.bb-bookblock' ).each( function( i ) {
                                
                                var $bookBlock =    $( this ),
                                        $nav =    $bookBlock.next().children( 'span' ),
                                        bb =    $bookBlock.bookblock( {
                                            perspective    : 900,
                                            speed                : 600,
                                            shadows            : false
                                        } );
                                    
                                // add navigation events
                                $nav.each( function( i ) {
                                
                                    $( this ).on( 'click', function( event ) {
                                        
                                        var $dot = $( this );
                                        if( !bb.isActive() ) {
                                            $nav.removeClass( 'bb-current' );
                                            $dot.addClass( 'bb-current' );
                                        }
                                        bb.jump( i + 1 );
                                        return false;
                                    
                                    } );
                                    
                                } );
                                
                                // add swipe events
                                $bookBlock.children().on( {

                                    'swipeleft'        : function( event ) {
                                    
                                        bb.next();
                                        return false;

                                    },
                                    'swiperight'    : function( event ) {
                                    
                                        bb.prev();
                                        return false;
                                        
                                    }

                                } );
                                
                            } );

                        }
                    
                    };

                })();

                Page.init();

            });
        </script>

 

http://jisu.webnain.com/BookBlock/index2.html

 

이걸 이미지 슬라이드처럼 자동으로 하고싶습니다... 도와주세요 ㅜㅜ

이 질문에 댓글 쓰기 :

답변 1

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 120
© SIRSOFT
현재 페이지 제일 처음으로