Nevermind. I just solved it.
It would be nice if you let us participate in it.
Oh sorry. So here is what I did. Not sure this is the best coding. Initially I had some code that would add an “active” class to each thumbnail as I clicked each larger image. To solve the problem I posted above, I grabbed the ‘alt’ of the larger image and matched it to the thumbnail url. It seems the thumbnails are generated with the same name but have a ‘thumb_’ added.
Once there is a match, I used Ariel Flesler “scrollTo” plugin to scroll accordingly. Hope this helps.
var $imageContainer = $('.imageareaContent .caption_container img');
$imageContainer.live('click', function () {
var $imgAlt = $(this).parent().next().find('img').attr('alt');
if ($imgAlt == undefined)
{
$imgAlt = $('.imageareaContent .caption_container:first img').attr('alt');
}
var $clickImg = 'thumbs_' + $imgAlt + '.jpg';
$('.thumbareaContent img').each(function (index) {
var attribute = $(this).attr('src');
var startIndex = attribute.indexOf('/thumbs/') + 8;
var endIndex = attribute.length;
var newAttribute = attribute.substring(startIndex, endIndex);
$(this).removeClass('active');
// console.log($clickImg);
// console.log(newAttribute);
if ($clickImg == newAttribute)
{
$(this).addClass('active');
$('.thumbarea').scrollTo( $(this), 400 );
}
});
});
Wow, i love your work! Thank you. I will study your code and hope I can integrate some in an public update.
I wish you a happy new year, best regards BMo
Can you give a little more info on how to implement this feature.
Where do I add the code? Sorry, my WordPress knowledge is limited 🙂
would be more simple if u would make the modified plugin available to download..
i would be also werrry happy:)
thanxxxxxx
pretyyyyy pleaeeeeeeeet 🙂
Hi 0001,
new version 2.0 is available to download.
I can sell you a version with the features
- The ability to dynamically change the size of the gallery. Great, if your theme doesn’t have a fixed width.
- Back and forward links for the images and thumbnails.
- And the new cool “followImages” feature for thumbnails.
write me for more informations.
Thank you, I will write you soon.
Hi, I’m also interested in the new version, drop me a message!