css - Reset Timer Interval of Carousel -


i'm using bootstrap's carousel. can see implementation here: http://jdattorneyatlaw.com/newtimespost

the problem when clicks on 1 of navigation arrows of carousel, interval timer not reset. so, if click back, might brought image looking at.

any instruction on how fix appreciated.

thank help.

do use tb2 or tb3. tb2 try reset timer on every next / previous click:

$.fn.carousel.constructor.prototype.next = function () {     if (this.sliding) return     if (this.interval) clearinterval(this.interval);     return this.slide('next')   }  $.fn.carousel.constructor.prototype.prev = function () {     if (this.sliding) return     if (this.interval) clearinterval(this.interval);     return this.slide('prev')   }  $('#mycarousel').carousel({interval:2000});          

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -