Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. $(this).click(function(){
  2. var n = i%2==0 ?
  3. ( page.main.currentThumb-1>=0 ? page.main.currentThumb-1 : page.main.numberOfThumbs-1 ):
  4. ( page.main.currentThumb+1<page.main.numberOfThumbs ? page.main.currentThumb+1 : 0 );
  5. p.find('.thumb-container a')[n].click();
  6. return false;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement