I have the following code snippet:
var Tannerie = {
init : function(){
$('#prev').mouseover(Tannerie.prevClick);
$('#next').mouseover(Tannerie.nextClick);
},
prevClick : function(){
$(this).click();
},
nextClick : function(){
$(this).click();
}
}
$(Tannerie.init);
That is, when I hover the mouse over a particular div it simulates a click. But I wanted to make it, when leaving the mouse on the div, that is giving continuous clicks. I tried to use setInterval but it did not work, but I do not think I did it right.