M
M
Marek_G2019-10-07 12:00:10
JavaScript
Marek_G, 2019-10-07 12:00:10

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);
});
5d9afe7fe8a53128424776.png5d9afe8b21c35390831596.pngeventObject.preventDefault();
});
}) ;

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
display: block, 2018-06-27
@dmitriyivvvv

https://regex101.com/r/sUbQnC/1

E
Eugene, 2018-06-27
@klim76

1. find a sequence of capital letters in the word
2. insert "1" before it and behind it
3. what is the question?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question