Guest User

Untitled

a guest
Apr 25th, 2012
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. Thumnails and Image Numbers
  2. list += '<li><a style="width:' + thumbWidth + 'px;height:' + thumbHeight + 'px;" href="javascript:jQuery.fancybox.jumpto(' + n + ');"></a></li>';
  3.  
  4. list += '<li><a style="width:' + thumbWidth + 'px;height:' + thumbHeight + 'px;" href="javascript:jQuery.fancybox.jumpto(' + n + ');">' + (n+1) + '</a></li>';
  5.  
  6. //Load each thumbnail
  7. $.each(F.group, function (i) { ...
  8.  
  9. <script type="text/javascript" src="fancybox2.0.5/helpers/jquery.fancybox-thumbs-NO-image.js"></script>
  10.  
  11. <style type="text/css">
  12. #fancybox-thumbs ul li a {
  13. border: 0 none !important;
  14. color: #fff !important;
  15. line-height: 16px;
  16. text-align: center;
  17. text-decoration: none;
  18. }
  19. </style>
  20.  
  21. <script type="text/javascript">
  22. $(document).ready(function() {
  23. $('.fancybox').fancybox({
  24. prevEffect : 'fade',
  25. nextEffect : 'fade',
  26. afterLoad : function() {
  27. this.title = 'Image ' + (this.index + 1) + ' of ' + this.group.length + (this.title ? ' - ' + this.title : '');
  28. },
  29. helpers: {
  30. title: {
  31. type: 'inside'
  32. },
  33. thumbs: {
  34. width : 16,
  35. height : 16
  36. }
  37. }
  38. }); // fancybox
  39. }); // ready
  40. </script>
Advertisement
Add Comment
Please, Sign In to add comment