Guest User

Untitled

a guest
Jan 19th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. $('.gallery li img').hover(function() {
  2. var $gallery = $('.gallery li img').parents('.gallery');
  3. var cur_img = $(this).attr('src').replace('thumb/', '');
  4. $('.main-img', $gallery).attr('src', cur_img);
  5. });​
Add Comment
Please, Sign In to add comment