I don't understand what's happening here. If someone could explain, I would appreciate it. I need to create a photo gallery and have been recommended to look at this code but I don't understand how it works.
$(document).ready(function(){
imageSwapper(".thumbnails a");
});
function imageSwapper(link) {
$(link).click(function(){
$('#largeimage').attr('src', this.href);
return false;
});
};