Hello, I created this basic slideshow in JavaScript. That can go next, previous, first and last.
Now, its pretty simple and there is no animation.
Could I use jQuery features like fadein and so on in my current script?
Code:
// Slide Show Previous, Next , First & Last
var min = 1;
var last = 5;
var current = min;
function moveSlide(moveMe) {
if (moveMe == 0) {
current = min;
}
current = current + moveMe;
if (moveMe == "end") {
current = last;
}
if (current > last) {
current = min
} else if (current < min) {
current = last;
}
document.getElementById("img1").src = "images/slide" + current + ".png";
}
Do I need to add the jQuery Lib in this current custom.js file?
Thanks in advance