<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html" />
<title>Player Demo</title>
<style>
.container
{
width: 1200px;
}
.content
{
width: 100px;
height: 100px;
display: block;
margin: 10px;
position: absolute;
background-color: red;
}
.readmore
{
position: absolute;
display: none;
margin: 10px;
width: 100px;
height: 50px;
background-color: green;
}
</style>
</head>
<body>
<div class="container">
<div class="content" id="1">1</div>
<div class="content" id="2">2</div>
<div class="content" id="3">3</div>
<div class="content" id="4">4</div>
<div class="content" id="5">5</div>
<div class="content" id="6">6</div>
<div class="content" id="7">7</div>
<div class="content" id="8">8</div>
<div class="content" id="9">9</div>
<div class="readmore" id="q1">1</div>
<div class="readmore" id="q2">2</div>
<div class="readmore" id="q3">3</div>
<div class="readmore" id="q4">4</div>
<div class="readmore" id="q5">5</div>
<div class="readmore" id="q6">6</div>
<div class="readmore" id="q7">7</div>
<div class="readmore" id="q8">8</div>
<div class="readmore" id="q9">9</div>
</div>
</body>
<script type="text/javascript" src ="js/jquery-1.11.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
var offsetX = 120,
offsetY = 10;
$('.content').each(function(index, item)
{
$(item).css({left: offsetX * index, top: offsetY});
$('.readmore[id=q' + (index + 1) + ']')
.css({left: offsetX * index, top: offsetY + 110});
});
$('.content').bind('mouseover', showDivContent);
$('.content').bind('mouseleave', hideDivContent);
});
function showDivContent(event)
{
$('.readmore[id=q' + $(this).attr('id') + ']')
.css({'display': 'block'});
}
function hideDivContent(event)
{
$('.readmore[id=q' + $(this).attr('id') + ']')
.css({'display': 'none'});
}
</script>
</html>
<div class="img1"><img /></div>
<div class="img2"><img /></div>
<div class="img3"><img /></div>
<div class="img4"><img /></div>
<div class="img5"><img /></div>
<div class="img6"><img /></div>
<div class="img7"><img /></div>
<div class="img8"><img /></div>
<div class="drygoi_div"><img /></div>
div.drygoi_duv:hover {
border:10px solid red;
}
$('ul').delegate('img', 'mouseover', function() {
$(this).parent() // и т.д.
});
<ul>
<li><img></li>
<li><img></li>
<li><img></li>
<!-- и т.д. -->
</ul>
$('div[class*="img"]').hover(function(){$('div.drygoi_div').trigger('hover');});
$("div span:last-child").css("border", "1px solid blue");