I am adding some new code to this Mootools slideshow.
I added thumbnails and a mouseover function that scrolls thru the thumbnails.
Now I need to make the timer on the slideshow stop/pause when mouseenter
. I ma trying with the code under but got a Uncaught TypeError: Object #<HTMLDivElement> has no method '_stopClock'
.
spinAreaDiv.addEvent('mouseenter', function(){
this._stopClock();
})
How can I call the class _stopClock
?
var Spin = new Class({
...
...
_stopClock:function(){
if(!this.options.timer) {
return false;
} else {
this.timerRunning = false;
clearInterval(this.clock);
this.timer.pause.addClass('active');
}
},
...