-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmouseovermadness.html
47 lines (35 loc) · 990 Bytes
/
mouseovermadness.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
47
<!DOCTYPE html>
<html>
<head>
<title>Mouseover Madness</title>
<style>
ul li{opacity:.25; list-style:none;}
.1 {opacity:.25;}
</style>
<script src="jQuery.min.js"></script>
</head>
<body>
<ul id="nav">
<li>I'm ready!</li>
<li>You'll never take me alive, jQuery!</li>
<li>You'll take me alive, jQuery!</li>
</ul>
<script type="text/javascript" >
$(document).ready(function(){
//original code for mouse
$("#nav li").mouseenter(function(){
var thisli = $(this);
thisli.fadeTo("fast", 1);
thisli.dequeue();
});
$("#nav li").mouseleave(function(){
var thisli = $(this);
thisli.fadeTo("fast", .25);
thisli.dequeue();
});
//this code adds the roles - add it to each section - now to figure out what ARIA roles to add!
//$("#nav li").attr("role","banner");
});
</script>
</body>
</html>