-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimage_practice2.js
More file actions
46 lines (40 loc) · 1 KB
/
Copy pathimage_practice2.js
File metadata and controls
46 lines (40 loc) · 1 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
<!Doctype html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>You've been social worked!</title>
<body>
<div class="image"">
<style type="text/css">
image {
position: relative;
width: 100%; /* for IE 6 */
}
h2 {
position: absolute;
top: 0
right: 300em;
width: 100%;
}
h2 span {
color: white;
font: bold 24 px/45px Helvetica, Sans-Serif;
letter-pacing: -1px;
background: rgb(0, 0, 0);
background: rgba(0, 0, 0, 0.7);
padding 10px;
}
</style>
<h2><span> "You've been social worked!"</span></h2>
<img src="http://thebertshow.com/wp-content/uploads/2013/04/Screen-Shot-2013-04-22-at-8.38.22-AM.png" alt = "" />
</div>
<address>Made June 8 2013<br>
by Maggie.</address>
<p id="socialwork">Are you social working it up?"</p>"
<button type="button" onclick="myFunction()">Social work!</button>
<script>
function myFunction()
{
document.getElementById("socialwork").innerHTML="Have I ever!"
}
</body>
</html>