Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("#left").click(function() {
- var previous = $(".active").prev();
- var left = $(previous).attr("href");
- var last = $("#gallery a:last-child");
- var first = $("#gallery a:first-child").hasClass("active");
- if(first == true) {
- $(".smallImage").removeClass("active");
- $(last).addClass("acitve");
- } else {
- $(".smallImage").removeClass("active");
- $(previous).addClass("active");
- $("#bigImage img").attr("src", left);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement