Well, for my wewsite I'd prefere to use personal thumbs (so I can work on them in a graphical way) instead of those of Fotorama. In this case I need something to link the personal thumb to the original picture and start Fotorama. I found this code on the Fotorama customize original page. But I was not able to make it working! I think I miss something.
Here's another possibility... set the attribute: data-nav="none", create your own thumbnails, and then bind the thumbnail clicks using jQuery to the .show() method.
Example:
Code: Select all
<div class="fotorama" data-nav="none">
<img src="full-apple.jpg">
<img src="full-orange.jpg">
</div>
<div class="my-thumbnails">
<img src="thumb-apple.jpg">
<img src="thumb-orange.jpg">
</div>
<script>
$('.fotorama').on('fotorama:ready', function (e, fotorama) {
//- Connect the thumbnails to the main image.
//- We need this because we use our own images,
//- not the ones generated by fotorama nav.
$('.my-thumbnails a').click(function(e) {
e.preventDefault();
var index = $(this).data('image-index');
fotorama.show(index);
});
});
</script>
By the way, your Lightboks works perfectly. The only problem is sometimes you have to click twice to close the Fotorama and come back to the thumbs page.
Thanks again for your help till now and for your patience.
I wanted to write to you a personal message, but I was not able to put the recipient's name.