2

Developer
Size
1,975 Kb
Views
18,216

How do I make an 2?

What is a 2? How do you make a 2? This script and codes were developed by Lichi Chen on 18 October 2022, Tuesday.

2 Previews

2 - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>2</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1>Choices of City to Travel</h1>
<div id="one" class="pinkback"> Choice one
</div>
<div id="two" class="lightgreenback"> Choice two
</div>
<p> <input type = "button" value = "color change" onclick = "changeColor()"> <input type = "button" value = "Text change" onclick = "changeText()"> <input type = "button" value = "Style and Color change" onclick = "changeStyleNColor()">
</p>
<p id="lol"></p> <script src="js/index.js"></script>
</body>
</html>

2 - Script Codes CSS Codes

h1 { font-size: 30pt; color: rgb(0, 0, 255); front-family: arial;
}
div { font-size: 15pt; Border: 10px outset; Padding: 5pt; Margin: 20pt;
}
h1 { font-size: 30pt; color: rgb(0, 0, 255); front-family: arial;
}
div { font-size: 15pt; Border: 10px outset; Padding: 5pt; Margin: 20pt;
}
.pinkback { background-color: pink;
}
.lightgreenback { background-color: lightgreen;
}
.blueback { background-color: blue;
}
.purpleback { background-color: purple;
}
.Red { color: blue;
}
.orange { color: orange
}

2 - Script Codes JS Codes

function changeColor() { var c1 = document.getElementById("one"); var c2 = document.getElementById("two"); c1.className = "blueback"; c2.className = "purpleback";
}
function changeText() { var t1 = document.getElementById("one"); var t2 = document.getElementById("two"); t1.innerHTML = "选择 1"; t2.innerHTML = "选择 2";
}
function changeStyleNColor() { var sc1 = document.getElementById("one"); var sc2 = document.getElementById("two"); sc1.className = "Red"; sc2.className = "orange"; sc1.innerHTML = "选择 1"; sc2.innerHTML = "选择 2";
}
2 - Script Codes
2 - Script Codes
Home Page Home
Developer Lichi Chen
Username chenlichiclc
Uploaded October 18, 2022
Rating 3
Size 1,975 Kb
Views 18,216
Do you need developer help for 2?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Lichi Chen (chenlichiclc) Script Codes
Create amazing sales emails with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!