Web Development with jQuery®

(Elliott) #1

(^448) ❘ CHAPTER 20 CREATING AN INTERACTIVE SLIDESHOW
.fadeOut('slow');
var slideInCollection = parseInt($(this).text());
var counter = slideInCollection + 1;
var resetCounter = (
(slideInCollection + 1) >
node.find('ul.slideshowControls li').length
);
if (resetCounter)
{
counter = 1;
}
slideshows[slideCollection].counter = counter;
$('#slide-' + slideCollection + '-' + slideInCollection)
.fadeIn(
'slow',
function()
{
li.addClass('slideshowControlActive');
slideshows[slideCollection].transitioning = false;
slideshows[slideCollection].resumeTimer = setTimeout(
'slideshows[' + slideCollection + '].resume();',
5000
);
}
);
}
}
);
this.resume = function()
{
this.isInterrupted = false;
this.transition();
};
this.transition = function()
{
if (this.isInterrupted)
{
return;
}
node.find('.slide:visible')
.fadeOut('slow');
http://www.it-ebooks.info

Free download pdf