<script src="https://libs.baidu.com/jquery/1.10.2/jquery.min.js">
$(document).ready(function(){
$("div.over").mouseover(function(){
$(".over span").text(x+=1);
$("div.enter").mouseenter(function(){
$(".enter span").text(y+=1);
<p>The mouseover event triggers when the mouse pointer enters the child elements as well as the selected element.</p>
<p>The mouseenter event is only triggered when the mouse pointer enters the selected element. </p>
<div class="over" style="background-color:lightgray;padding:20px;width:250px;float:left">
<h3 style="background-color:white;">Mouseover event triggered: <span></span></h3>
<div class="enter" style="background-color:lightgray;padding:20px;width:250px;float:right">
<h3 style="background-color:white;">Mouseenter event triggered: <span></span></h3>