-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcss.html
46 lines (37 loc) · 1012 Bytes
/
css.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>
<html>
<body>
<div onmousedown="Down(this)" onmouseup="Up(this)" style="background-color:#D94A38;width:90px;height:20px;padding:40px;">Click Me</div>
<p id="p1">Hello World!</p>
<p id="p2">Hello World!</p>
<script>
/* function a(){ document.getElementById("a").style.color="blue";
document.getElementById("p2").style.fontFamily="Arial";
document.getElementById("p2").style.fontSize="larger";
}*/
/*
function b(){
document.getElementById("img").src="img_pulpit.jpg";
}
function Down(obj)
{
obj.style.backgroundColor="#1ec5e5";
obj.innerHTML="Release Me"
}
function Up(obj)
{
obj.style.backgroundColor="#D94A38";
obj.innerHTML="Thank You"
}
var p=document.createElement("div");
var q=document.createTextNode("hello world");
p.appendChild(q);
var s=document.getElementById("s");
s.appendChild(p);
*/
</script>
<p id="s"></p>
<img src="paper.gif"/>
<p id="img" onclick="b()">click here</p>
</body>
</html>