-
Notifications
You must be signed in to change notification settings - Fork 0
/
ww-test.html
47 lines (42 loc) · 1.09 KB
/
ww-test.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 lang="en">
<head>
<meta charset="UTF-8">
<title>Test threads fibonacci</title>
</head>
<body>
<div id="result"></div>
<div class="outer" style="width: 400px; height: 400px; background-color:red;">
<div class="inner" style="width: 200px; height: 200px; background-color: yellow;"></div>
</div>
<div>
<ul>
<li class="outer">
<a class="inner" href="#">move 1</a>
</li>
<li class="outer">
<a class="inner" href="#">move 2</a>
</li>
</ul>
</div>
<span id="outerText"></span>
<span id="innerText"></span>
<script
src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script>
window.jQuery
|| document
.write('<script src="js/libs/jquery-1.6.2.min.js"><\/script>')
</script>
<script type="text/JavaScript">
// $(document).ready(function(){
var outer = $('.outer');
outer.mouseover(function() {
$('#outerText').text('Handler for .mouseover() called.');
}).mouseout(function(){
$('#outerText').text('Handler for .mouseout() called.');
});
// });
</script>
</body>
</html>