javascript - Stop and Restart function for custom jQuery Slider -
I see a solution to restart and stop a custom jQuery slider. I have inserted the custom jQuery slider from here: I use the slider on the same page for three slideshows Have done Those three slideshows are inside three buttons, which play movies when they are active and show the slides inside the button, while the movie is playing. I want to reset (and stop) slideshows inside that button, when the second is active of those three buttons. For now, the slideshow starts inside a function called when the button is clicked. But it still needs to be reset, otherwise it gets stacked (and still). This is Bela's small code: I have to do this with a clear interval (timingron) Was able to celebrate!
var triggers = window.vorher.find ('. Fortschrittwrap .note'); Var images = window.vorher.find ('.notificationwrap.c_text'); Var lastElem = Trigger. Lanti-1; Var Target; . Triggers.first () addClass ('active'); (Images.hide ()) first () show). Function Slider Resigns (Target) {images.fadeOut (300) .eq (Target). FadeIn (300); . Triggers.removeClass ('active') eq (target) .addClass ('active'); } Triggers.Click (function () {if (! $ .hasClass ('active')) {target = $ (this) .index (); sliderspace (target); resetting ();}}); Function SliderTiming () {target = window.vorher.find ('. Fortschrittwrap .note.active'). Index (); Goal === The last Eelam? Goal = 0: target = target + 1; SliderResponse (target); } Var timingRun = setInterval (function () {sliderTiming ();}, 5000); Function resetting () {clear interval (timingron); Timeline = Set interval (function () {sliderTiming ();}, 5000); } "
Comments
Post a Comment