-
Notifications
You must be signed in to change notification settings - Fork 13
/
demo.html
44 lines (41 loc) · 1.01 KB
/
demo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<link href="/favicon.ico" type="image/x-icon" rel="shortcut icon" />
<title>jQuery Mousestop Event - Richard Scarrott</title>
<style type="text/css">
body {
font-family:arial, helvetica, sans-serif;
font-size:81.25%;
background:#DDD;
margin:16px;
}
.box {
background:#1788D7;
width:100px;
height:100px;
float:left;
margin:0 20px 0 0;
color:#FFF;
text-align:center;
}
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript" src="jquery.event.mousestop.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
$('#box-1').mouseenter(function() {
console.log('mouse entered');
});
$('#box-2').mousestop(function() {
console.log('mouse stopped');
});
});
</script>
</head>
<body>
<div id="box-1" class="box">mouseenter</div>
<div id="box-2" class="box">mousestop</div>
</body>
</html>