How can I make the Bootstrap js carousel automatically cycle as soon as the page loads?

前端 未结 15 1594
花落未央
花落未央 2020-12-04 21:53

Using bootstrap.js version 2.02

I\'m trying to get the Twitter Bootstrap Carousel to automatically cycle as soon as someone visits my site. Right now, the auto cycl

15条回答
  •  孤街浪徒
    2020-12-04 22:34

    While there undoubtedly are correct answers here, I just wanted to add that you can reproduce the exact behavior as the poster describes by adding errors to your code. Remove semicolons or the ending script tag for example, and the carousel wont autoplay anymore.

    So the first thing you should do is to look for errors in your javascript console!

提交回复
热议问题