Hello to everyone!
I have created a carousel slider here:
http://jsfiddle.net/VUfzq/
If you see I have added an auto rotate of 1000 to automaticely change every 1 second.
The problem I have is when I hover on items the auto rotate stops and doesn't work even I move my cursor to anywhere else.
What can I do to fix this problem?
Thanks in advance!
Alireza.M
Try to add the mouseleave (second) event handler to carousel.js line 407:
.bind('mouseenter click touchstart', function() { clearInterval(auto); }) .bind('mouseleave', function() { auto = setInterval(autoAdvance, speed); });
Thank you so much CrocoDillon!
It's working very well now.
Hello to everyone!
I have created a carousel slider here:
http://jsfiddle.net/VUfzq/
If you see I have added an auto rotate of 1000 to automaticely change every 1 second.
The problem I have is when I hover on items the auto rotate stops and doesn't work even I move my cursor to anywhere else.
What can I do to fix this problem?
Thanks in advance!
Alireza.M
Try to add the mouseleave (second) event handler to carousel.js line 407:
Thank you so much CrocoDillon!
It's working very well now.