Hey all,
My photo gallery consist of small thumbnails and one main image displayed that swaps when clicking the thumbs.
Here is my html
I added a zoom, hence the link surrounding the main image.
My jQuery for swapping the #main_view looks like this
Code:
jQuery(“ul.thumb li img”).click(function() {
var mainImage = jQuery(this).attr(‘src’);
jQuery(“#main_view”).attr(‘src’,mainImage);
return false;
});
Because I added the zoom effect I will need to change the link href along with the #main_view source. My newbie skills though adding
Code:
jQuery(“.zoomThis”).attr(‘href’,mainImage)
would be enough but apparently I was once again wrong. (sigh)
Any ideas how to get this working?
Thank you