ushakofff64rus,
<!DOCTYPE html>
<html class="no-js" lang="en-US" >
<head>
<meta charset="UTF-8" />
<style type="text/css">
.thumb{
position: relative;
height: 100px;
}
.thumb img{
position: absolute;
}
</style>
<script type="text/javascript"
src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js">
</script>
<script>
$(document).ready(
function()
{
$(".thumb").mouseenter(function(event)
{
$("img", this).stop(true,true);
$(".img", this).fadeTo(500, 1);
$(".init_img", this).fadeTo(500, 0);
})
.mouseleave(function(event)
{
$("img", this).stop(true,true);
$(".img", this).fadeTo(500, 0);
$(".init_img", this).fadeTo(500, 1);
})
}
);
</script>
</head>
<body>
<div class="thumb" id="project1">
<img src="http://learn.javascript.ru/files/tutorial/browser/events/gallery/img2-thumb.jpg" class="img">
<img src="http://learn.javascript.ru/files/tutorial/browser/events/gallery/img4-thumb.jpg" class="init_img">
</div>
<div class="thumb" id="project2">
<img src="http://learn.javascript.ru/files/tutorial/browser/events/gallery/img2-thumb.jpg" class="img">
<img src="http://learn.javascript.ru/files/tutorial/browser/events/gallery/img4-thumb.jpg" class="init_img">
</div>
<div class="thumb" id="project3">
<img src="http://learn.javascript.ru/files/tutorial/browser/events/gallery/img2-thumb.jpg" class="img">
<img src="http://learn.javascript.ru/files/tutorial/browser/events/gallery/img4-thumb.jpg" class="init_img">
</div>
</body>
</html>