jquery - Bullet navigation in image slider -
When I click on any bullet in the code below, it will start with that bullet ID and then start After the implies the image is from the beginning, can you update that code in such a way if I click on the second bullet , then starting with loop 3, it means clicking After next
Here's my
I have seen going through your Bela that your variable 'id' is a String is stored and in your show slide function you are attempting to insert a string with integer and integer:
sliderNext = id + 1;
The value you assign to the Global Variable Slider means to be next 21 or 31 or 41. So when you start the call, then this argument will always evaluate the truth:
if (slider next> count) {sliderNext = 1; // Slides list slider ents = 1; // Set the integer number back to 1}
Basically resetting the value every time you can use something like PerceInt on the 'id' variable and then it's okay Should work.
Comments
Post a Comment