JSFiddle - React, Tailwind, and code Playground
HTML
<script>
$(document).ready(function(){
$("#thumbnail0").hover(
function(){
var id = $(this).data("id");
if(id!==undefined){
$("#" + id).show();
}
$("#top_box0").show();
},function(){
$("#top_box0").hide();
});
});
</script>
<script>
$(document).ready(function(){
$("#thumbnail1").hover(
function(){
var id = $(this).data("id");
if(id!==undefined){
$("#" + id).show();
}
$("#top_box1").show();
},function(){
$("#top_box1").hide();
});
});
</script>
<script>
$(document).ready(function(){
$("#thumbnail2").hover(
function(){
var id = $(this).data("id");
if(id!==undefined){
$("#" + id).show();
}
$("#top_box2").show();
},function(){
$("#top_box2").hide();
});
});
</script>
<br><br><br><br><br><br><br><br><br><br>
<div style=" float: left; position: relative; width: 100%; margin-bottom: 200px; " >
<div id="top_box0" class="top_box0">
<img src="http://consciouscat.net/wp-content/uploads/2010/02/cat-licks-lips-200px.jpg">
</div>
<span id="thumbnail0" style=" margin: 7px; position: relative;">
<img border="0" src="http://consciouscat.net/wp-content/uploads/2010/02/cat-licks-lips-200px.jpg" width="80" height="80"/>
</span>
</div>
<br>
<div style=" float: left; position: relative; width: 100%; margin-bottom: 200px; " >
<div id="top_box1" class="top_box1">
<img src="http://cat-bounce.com/cb.png">
</div>
<span id="thumbnail1" style=" margin: 7px; position: relative; ">
<img border="0" src="http://cat-bounce.com/cb.png" width="80" height="80"/>
</span>
</div>
<br>
<div...
CSS
.top_box0{
left: 99px;
top: 0px;
position: absolute;
border: 1px solid #000;
display: none;
}
.top_box1{
left: 99px;
top: 0px;
position: absolute;
border: 1px solid #000;
display: none;
}
.top_box2{
left: 99px;
top: 0px;
position: absolute;
border: 1px solid #000;
display: none;
}