mouse

English [ma?s] American [ma?s]

n. Mouse; mouse; shy [timid] person; [informal term] eye bruises on the head

vi.Catch mice; spy, secretly search

enter

## English[?ent?(r)] US[??nt?]

vt.& vi. Enter; participate; start; register

jquery mouseenter() method syntax

Function:When the mouse pointer passes through an element, the mouseenter event occurs. This event is most often used in conjunction with the mouseleave event. The mouseenter() method triggers the mouseenter event, or specifies a function to run when the mouseenter event occurs. Unlike the mouseover event, the mouseenter event is only triggered when the mouse pointer passes through the selected element. If the mouse pointer passes through any child element, the mouseover event will also be triggered. See the example below for a demonstration.

Trigger mouseenter event syntax: $(selector).mouseenter()

Bind the function to mouseenter Event syntax: $(selector).mouseenter(function

Parameters:

##ParametersDescriptionfunction Optional. Specifies the function to run when the mouseenter event occurs.

jquery mouseenter() method example

<html>
<head>
<script type="text/javascript" 
src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  $("p").mouseenter(function(){
    $("p").css("background-color","yellow");
  });
  $("p").mouseleave(function(){
    $("p").css("background-color","#E9E9E4");
  });
});
</script>
</head>
<body>
<p style="background-color:#E9E9E4">請把鼠標(biāo)指針移動(dòng)到這個(gè)段落上。</p>
</body>
</html>
Run instance ?

Click the "Run instance" button to view the online instance

        <thead id="sv3tq"></thead>
        <i id="sv3tq"></i>
        <span id="sv3tq"></span>

        <label id="sv3tq"></label>

      • <label id="sv3tq"></label>
        <bdo id="sv3tq"><meter id="sv3tq"></meter></bdo>
        <li id="sv3tq"><legend id="sv3tq"></legend></li>

        <label id="sv3tq"><xmp id="sv3tq"><li id="sv3tq"></li>