Answer the question
In order to leave comments, you need to log in
How to make a gallery of pictures so that when you click on the lower ones, they do not open in a new tab, but become large instead of the main one?
Here is the code:
$(document).ready(function() {
$('#small a').click(function(eventObject) {
$('#big img').hide().attr('src', $ (this) .attr('href'))
$('#big img').load(function() {
$(this).fadeIn(2000);
});
eventObject.preventDefault();
});
}) ;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question