Blog Content

    티스토리 뷰

    85.jQuery - Carousel (14.Module )

    반응형
    jQuery 공식 사이트에 올라온 소스를 적용한 예제입니다.

    http://plugins.jquery.com/에 서 Carrusel 검색해 나오는 자료 중 2번째 자료 다운로드

    http://plugins.jquery.com/project/jquery-infinite-carousel

    해당 파일 압축을 풀고 적용합니다.

    이미지를 슬라이드 형식


    Carousel.htm

    <html xmlns="http://www.w3.org/1999/xhtml">

    <head>

        <title></title>

        <link href="Source/jquery.infinite-carousel.css" rel="stylesheet" type="text/css" />

        <link href="Source/demos/demo_files/periscope-theme-switcher.css" rel="stylesheet"

            type="text/css" />

        <script src="../../jQuery/jquery-1.3.2-vsdoc2.js" type="text/javascript"></script>

     

        <script src="Source/jquery.infinite-carousel.js" type="text/javascript"></script>

       

        <script type="text/javascript">

            $(document).ready(function() {

                $('#slider-stage').carousel('#previous', '#next');

            });

        </script>

    </head>

     

    <body>

        <div id="sliderBloc">

            <a id="previous">이전</a>

            <div style="" id="slider-stage">

            <div style="width:512px;" id="slider-list">

                <a class="theme">

                        <img src="../../images/j1.jpg" />

                        <span class="nameVignette">조선옥</span>

                        <span class="changeTheme">이뻐욤</span>

                </a>

                <a class="theme">

                    <img src="../../images/j2.jpg" />

                    <span class="nameVignette">조선옥</span>

                    <span class="changeTheme">진짜이쁘다</span>

                </a>

                <a class="theme">               

                    <img src="../../images/j3.jpg" />

                    <span class="nameVignette">조선옥</span>

                    <span class="changeTheme">최고에요!</span>

                </a>

            </div>

            </div>

            <a id="next">다음</a>

        </div>

    </body>

    </html>


    결과화면

    [그림85-1]


    Body부분을 반복


    반응형

    Comments