I have been trying to figure out how to make this function pause on mouseover, and continue on mouseout. I have figured out how to pause the function on mouseover, but it doesnt start up again on mouseout. Here is the jQuery code (Used from another tutorial).
function swapImages(){
var $active = $('#myGallery .active');
var $next = ($('#myGallery .active').next().length > 0) ? $('#myGallery .active').next() : $('#myGallery img:first');
$active.fadeOut(function(){
$active.removeClass('active');
$next.fadeIn().addClass('active'); }); }
$(document).ready(function(){setInterval('swapImages()', 5000);}
$('#myGallery').mouseover(function(){
$(this).delay(60000);
});