jquery - JavaScript slide show only showing every OTHER image -


All,

I'm having a weird problem I had a slideshow script on my page that is absolutely right Used to work ... ten minutes ago. And now this work is still working, but it's only showing every second image weird It only shows 01.jpg, 03.jpg, 05.jpg, and I do not know why

code:

  & lt; Script type = "text / javascript" & gt; // Run everything when the page is completely $ (window) loaded. Load (function () {var imgs = ['Pictures / slideshow / 02.jpg', 'Images / slideshow / 03.jpg', 'Images / slideshow /04.jpg', 'Images / Slideshow / 05 .jpg ',' Pictures / Slideshow / 06.jpg ',' Pictures / Slideshow / 01.jpg ']; var cnt = imgs.length; Function Slider ($ {$ (' # ImagesSlides'). Fadeaut (5000 , Function) ($ (this) .attr ('src', IMGS [(IMG. Lamp ++)% cnt.) Fadein (2000);})}} $ (function () {SetInterval (slider, 5000); });}); & Lt; / Script & gt;  

Again ... I have seen the strange thing. Does anyone have a clue that can be about this? I'm at a loss. Your feedout + Fidin time (5000 + 2000) should be smaller than the interval timer (5000).

Try it:

  Function Slider () {$ ('# imageSlide'). Fadeaut (1000, function) {$ (this) .attr ('Src', IMGS ([imgs.length ++)% cnt]). Feedine (1000);}); } $ (Function () {setInterval (slider, 5000);});  

Comments

Popular posts from this blog

eclipse plugin - Run java code error: Workspace is closed -

ios - How do I use CFArrayRef in Swift? -

scala - Play Framework - how to bind form to a session field -