-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhoverDelay.html
46 lines (40 loc) · 1.52 KB
/
hoverDelay.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
45
46
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title></title>
<script type="text/javascript" charset="utf-8" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8" src="jquery.smartHover.js"></script>
<script type="text/javascript" charset="utf-8">
$(function(){
$(".smartHover").hoverDelay({
done : function() {
console.log('Done!');
},
out : function() {
console.log('Moused out.');
$(this).cancelHoverDelay();
},
delayedOut : function() {
console.log('Moused out, delayed...');
},
delay : 800
});
});
</script>
</head>
<body>
<div id="container">
<p><a href="#go" class="smartHover">roll over me</a></p>
<p><a href="#go" class="smartHover">roll over me</a></p>
<p><a href="#go" class="smartHover">roll over me</a></p>
<p><a href="#go" class="smartHover">roll over me</a></p>
<p><a href="#go" class="smartHover">roll over me</a></p>
<p><a href="#go" class="smartHover">roll over me</a></p>
<p><a href="#go" class="smartHover">roll over me</a></p>
<p><a href="#go" class="smartHover">roll over me</a></p>
<p><a href="#go" class="smartHover">roll over me</a></p>
</div>
</body>
</html>