-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEffects.html
More file actions
93 lines (67 loc) · 2.02 KB
/
Copy pathEffects.html
File metadata and controls
93 lines (67 loc) · 2.02 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<html>
<h1>EFFECTS IN HTML</h1>
<link rel="stylesheet" href="style1.css">
<body>
<button id="btn1">CLICK ME 1</button>
<button id="btn2">CLICK ME 2</button>
<div id="mydivs">
<p>this is paragrph</p>
</div>
<div id="mydivs">
<p>first paragrph</p><br>
<p>second paragrph</p><br>
<p>third paragrph</p><br>
</div>
<div>
<ul>
<li>java</li>
<li>c</li>
<li>python</li>
<li>javascrpit</li>
</ul>
</div>
<div>
<ul>
<li>maths</li>
<li>science</li>
<li>english</li>
<li>ict</li>
</ul>
</div>
</body>
<script
src="https://code.jquery.com/jquery-3.5.0.js"
integrity="sha256-r/AaFHrszJtwpe+tHyNi/XCfMxYpbsRg2Uqn0x3s2zc="
crossorigin="anonymous">
</script>
<script type="text/javascript" >
$(document).ready(function(){
$("#btn1").hover(func1,func2)
{
function func1()
{
document.getElementById("mydivs").style.color="yellow"
$("#mydivs").fadeToggle(500)
}
function func2()
{
document.getElementById("mydivs").style.color="brown"
$("#mydivs").fadeToggle(500)
}
}
$("#btn2").hover(func3,func4)
{
function func3()
{
document.getElementById("p").style.color="blue"
$("#p").fadeToggle(500)
}
function func4()
{
document.getElementById("p").style.color="green"
$("#p").fadeToggle(500)
}
}
})
</script>
</html>