Вопрос по twitter-bootstrap, jquery – Bootstrap Carousel Number active icon

8

Error: User Rate Limit ExceededError: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded khatz0406

Ваш Ответ

2   ответа
1

Error: User Rate Limit Exceeded manc
19

$('#myCarousel').bind('slid', function() {
    // Get currently selected item
    var item = $('#myCarousel .carousel-inner .item.active');

    // Deactivate all nav links
    $('#carousel-nav a').removeClass('active');

    // Index is 1-based, use this to activate the nav link based on slide
    var index = item.index() + 1;
    $('#carousel-nav a:nth-child(' + index + ')').addClass('active');
});

Error: User Rate Limit Exceeded manc

Похожие вопросы