Hi,
I try to stop highslide at the last slide, to constrain user to click on the stop button if he wants to exit.
Is there a way to desactivate autoclose (autoexit) system?
Best regards,
Philippe
Code: Select all
checkFirstAndLast: function() {
if (this.repeat || !this.controls) return;
var exp = hs.expanders[this.expKey],
cur = exp.getAnchorIndex(),
re = /disabled$/;
if (cur == 0)
this.disable('previous');
else if (re.test(this.btn.previous.getElementsByTagName('a')[0].className))
this.enable('previous');
if (cur + 1 == hs.anchors.groups[exp.slideshowGroup || 'none'].length) {
this.pause(); // Added line
this.disable('next');
this.disable('play');
} else if (re.test(this.btn.next.getElementsByTagName('a')[0].className)) {
this.enable('next');
this.enable('play');
}
},
Code: Select all
getAdjacentAnchor : function(op) {
var current = this.getAnchorIndex(), as = hs.anchors.groups[this.slideshowGroup || 'none'];
if (as && !as[current + op] && this.slideshow) return as[current];
return (as && as[current + op]) || null;
},