Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('.gallery li img').hover(function() {
- var $gallery = $('.gallery li img').parents('.gallery');
- var cur_img = $(this).attr('src').replace('thumb/', '');
- $('.main-img', $gallery).attr('src', cur_img);
- });
Add Comment
Please, Sign In to add comment