3 991 Скрипты / Slider

prettyGallery - слайдер

prettyGallery - очередной слайдер изображений с навигацией по слайдам. Внешне неказист, но оформить с помощью CSS можно всё что угодно.

HTML

<ul class="gallery">
    <li><img src="images/thumbnails/t_1.jpg" width="60" height="60" alt="T 1" /></li>
    <li><img src="images/thumbnails/t_2.jpg" width="60" height="60" alt="T 2" /></li>
    <li><img src="images/thumbnails/t_3.jpg" width="60" height="60" alt="T 3" /></li>
    <li><img src="images/thumbnails/t_4.jpg" width="60" height="60" alt="T 4" /></li>
    <li><img src="images/thumbnails/t_5.jpg" width="60" height="60" alt="T 5" /></li>
</ul>

CSS

jаvascript

Подключаем jQuery и плагин:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="js/jquery.prettyGallery.js" type="text/javascript"></script>

Выполняем инициализацию prettyGallery:

$(document).ready(function(){
    $("ul.gallery").prettyGallery();
});

Опции

$(document).ready(function(){
    $("ul.gallery").prettyGallery({
        itemsPerPage : 2,
        animationSpeed : 'normal', /* fast/normal/slow */
        navigation : 'top'/* top/bottom/both */
        of_label: ' of ', /* The content in the page "1 of 2" */
        previous_title_label: 'Previous page', /* The title of the previous link */
        next_title_label: 'Next page', /* The title of the next link */
        previous_label: 'Previous', /* The content of the previous link */
        next_label: 'Next' /* The content of the next link */
    });
});

Скачать 718Загрузок 16,41 Kb
Демо

Комментарии

  • Facebook
  • Вконтакте

Похожие статьи