Ok, I was doing a simple JQuery animation. An image will move to the left by 1000px, once it stops, it will be replaced to another image. The code below:
Code:
function image1() {
$('#photo').animate({left: '1000px'}, 40000, function() {
$('#photo').attr('src', 'image2.jpg');
setTimeout("image1", "2000")
});
}
The issue, it does not work. How to tackle it?
Thank!