$(function () {
image1 = new Image();
image1.src = "img/1.png";
image2 = new Image();
image2.src = "img/2.png";
image3 = new Image();
image3.src = "img/3.png";
$("#tap").click(function () {
setInterval(slideit, 20);
});
});
var step = 1;
function slideit() {
if(step > 2) step = 1;
if (step < 3){
document.images.slide.src = window['image' + step].src;
step++; }
}
Можно так попробовать