Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Problems with simple image loading script Re: Problems with simple image loading script

#108398
croydon86
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.