<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
body,
div {
margin: 0;
padding: 0;
}
#box {
margin-top: 20px;
margin-left: 20px;
width: 200px;
height: 500px;
box-shadow: 0px 0px 10px #888888;
border-radius:5%;
}
.box {
width: 200px;
height: 50px;
background-color: #8B4726;
line-height: 50px;
text-align: center;
}
div:nth-child(1){
border-top-left-radius:5%;
border-top-right-radius:5%;
}
div:nth-child(10){
border-bottom-left-radius:5%;
border-bottom-right-radius:5%;
}
.box:hover {
background-color: #F0F0F0;
}
.box .mark {
display: none;
position: absolute;
width: 500px;
height: 500px;
top: 20px;
left: 220px;
box-shadow: 0px 0px 10px #888888;
text-align:left;
border-bottom-left-radius:1%;
border-bottom-right-radius:1%;
border-top-left-radius:1%;
border-top-right-radius:1%;
}
</style>
</head>
<body>
<div id="box">
<div id="box1" class="box">1
<div class="mark">1</div>
</div>
<div class="box">2
<div class="mark">2</div>
</div>
<div class="box">3
<div class="mark">3</div>
</div>
<div class="box">4
<div class="mark">4</div>
</div>
<div class="box">5
<div class="mark">5</div>
</div>
<div class="box">6
<div class="mark">6</div>
</div>
<div class="box">7
<div class="mark">7</div>
</div>
<div class="box">8
<div class="mark">8</div>
</div>
<div class="box">9
<div class="mark">9</div>
</div>
<div class="box">10
<div class="mark">10</div>
</div>
</div>
<script type="text/javascript">
var boxList = document.getElementsByClassName('box');
var markList = document.getElementsByClassName("mark");
var box = document.getElementById('box1');
for (var i = 0; i < boxList.length; i++) {
boxList[i].onmouseenter = function(e) {
e.target.firstElementChild.style.display="block";
}
boxList[i].onmouseleave = function(e) {
for(var i = 0; i < markList.length; i++ ) {
e.target.firstElementChild.style.display="none";
}
}
}
</script>
</body>
</html>