Home › Forums › JavaScript › Problems with simple image loading script › Re: Problems with simple image loading script
August 23, 2012 at 8:35 pm
#108398
Participant
Thanks TheDoc, yes that does seem to work. I also figured it out…
$(‘#thumbnails ul li’).click(function(){
$(‘#main’).attr(‘src’,$(this).find(‘img’).attr(‘src’).replace(‘small/’, ‘large/’));
});
It turns out I was just missing the .find element.
Thanks anyway ;)
I just need to make it fade in more smoothly now.