Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Thumnails and Image Numbers
- list += '<li><a style="width:' + thumbWidth + 'px;height:' + thumbHeight + 'px;" href="javascript:jQuery.fancybox.jumpto(' + n + ');"></a></li>';
- list += '<li><a style="width:' + thumbWidth + 'px;height:' + thumbHeight + 'px;" href="javascript:jQuery.fancybox.jumpto(' + n + ');">' + (n+1) + '</a></li>';
- //Load each thumbnail
- $.each(F.group, function (i) { ...
- <script type="text/javascript" src="fancybox2.0.5/helpers/jquery.fancybox-thumbs-NO-image.js"></script>
- <style type="text/css">
- #fancybox-thumbs ul li a {
- border: 0 none !important;
- color: #fff !important;
- line-height: 16px;
- text-align: center;
- text-decoration: none;
- }
- </style>
- <script type="text/javascript">
- $(document).ready(function() {
- $('.fancybox').fancybox({
- prevEffect : 'fade',
- nextEffect : 'fade',
- afterLoad : function() {
- this.title = 'Image ' + (this.index + 1) + ' of ' + this.group.length + (this.title ? ' - ' + this.title : '');
- },
- helpers: {
- title: {
- type: 'inside'
- },
- thumbs: {
- width : 16,
- height : 16
- }
- }
- }); // fancybox
- }); // ready
- </script>
Advertisement
Add Comment
Please, Sign In to add comment