Reputation: 5393
I have created a cross-fade slideshow which I have been trying to create for some time now being a beginner it took more then I expected and while I was celebrating that it was finally done I realized the slider had a bug here is the code:
If I click the button for NEXT
or PREV
the SlideShow starts taking speed in the time it's changing the images every time I click on them. Can anyone take a look at my code and tell me what I am doing wrong?
EDIT:I have added images. The problem with the code is that each time you click on next or prev the images start sliding faster and faster by default it should change an image every 4 seconds but after you click a few times on next or prev the speed in which the images change increases.
Upvotes: 0
Views: 222
Reputation: 1482
http://jsfiddle.net/qve6z/ Here is a working code! I was:
setInterval("functionname()",1000)
to setInterval(functionname,1000)
I was changed your images to text (1,2,3,4), it was only for testing.
Upvotes: 1