This is my first post on here but I have used this site as a great reference for years. I am simply trying to get my slide show to pause when I hover over it. The code is below. I tried using the jquery hover to stop it but I am not having any success. Anyone have any ideas?
$(function() {
// create the image rotator
setInterval("rotateImages()", 7000);
});
function rotateImages() {
var oCurPhoto = $('#photoShow div.current');
var oNxtPhoto = oCurPhoto.next();
if (oNxtPhoto.length == 0)
oNxtPhoto = $('#photoShow div:first');
oCurPhoto.removeClass('current').addClass('previous');
oNxtPhoto.css({ opacity: 0.0 }).addClass('current').animate({ opacity: 1.0 }, 1000,
function() {
oCurPhoto.removeClass('previous');
});
}