forked from Return-Ready-PT-Tues-Thurs/JavaScript-DOM
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
29 lines (22 loc) · 744 Bytes
/
script.js
File metadata and controls
29 lines (22 loc) · 744 Bytes
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
/*<img id="myImg" src="coding-is-fun.jpg" alt="Coding is fun!" width="250" height="250">*/
function myDevelopers() {
document.getElementById("myp1").textContent = "Developers for life!";
}
function myCoders() {
document.getElementById("myp2").textContent = "We are coders!";
}
function myImage() {
var myImg = new Image();
myImg.src = "coding-is-fun.jpg";
document.getElementById("myp3").appendChild(myImg);
}
function myColor() {
document.getElementById("myp1").style.color = "purple";
document.getElementById("myp2").style.color = "purple";
}
function mySize() {
document.getElementById("myp1").style.fontSize = "x-large";
}
function myH() {
document.getElementById("myp3").style.visibility = "hidden";
}