Jquery Slideshow Error Passing Slide

Asked

Viewed 40 times

0

Problem

I have a slideshow where I have to show two divs each time. Even at first you get them both all right, but once it returns to div 1 and 2 in the next 'next' I give a div 1 continues there and only the div 2 changes to the div 4. To div 1 should change to div 3.

Slideshow template

http://jsfiddle.net/5gfoufLa/1/

I think

I have already reviewed this code of mine several times and I believe it is with the correct logic and I have somehow changed the value of the div 1 to a value that can not exist or give the . show().

1 answer

1


Line 37

$slideativo1 = $slideshow.find("li.slideatualUltimo").next();

When the code is reset this being set twice the variable $slideativo1.

Remove that part that will work.

  • I work right! Thank you.

Browser other questions tagged

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