What is the easiest way to make a slide with Bootstrap?

Asked

Viewed 59 times

0

I was following the following tutorial to make a slide:

http://getbootstrap.com/javascript/#Carousel

The Design I managed to deploy on my page, as it is practically just copy and paste, I followed the example with caption..

Then I stopped to implement Javascript to start the slide, of the interval and the events of the touch on the icons... Could someone give me an example of Javascript? I’m not good at this language, I know I’m asking too much, but it’s because I tried a lot of ways, I even tried with another kind of slide I found and nothing... I only need functional Javascript following the link example.

  • 1

    here has a functional example...

  • 1

    Oops, sorry, that’s not bootstrap. But take a look in this, that has even some customizations.

  • 1

    Thanks this example solved

1 answer

0


maybe this script will serve as a starting point:

$(function () {
    $('#homeCarousel').carousel({
        interval:2000,
        pause: "false"
    });
    $('#playButton').click(function () {
        $('#homeCarousel').carousel('cycle');
        alert('clicou no play');
    });
    $('#pauseButton').click(function () {
        $('#homeCarousel').carousel('pause');
        alert('clicou no pause');
    });
});

Browser other questions tagged

You are not signed in. Login or sign up in order to post.