Changing HTML Text with CSS and JS Week 3
How do I make an changing html text with css and js week 3?
What is a changing html text with css and js week 3? How do you make a changing html text with css and js week 3? This script and codes were developed by Anshu Arora on 15 September 2022, Thursday.
Changing HTML Text with CSS and JS Week 3 - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Changing HTML Text with CSS and JS Week 3</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1> Change Many Things </h1> <div id="d1"> Hello
</div>
<div id="d2"> Goodbye
</div>
<p>
<input type="button" value="color change"
onclick = "changecolor()">
<input type="button" value="change text"
onclick = "changetext()"> </p> <script src="js/index.js"></script>
</body>
</html>
Changing HTML Text with CSS and JS Week 3 - Script Codes CSS Codes
.yellowback { background-color: yellow; width:200px;
}
.blueback { background-color: lightblue; width:200px;
}
.Bonjour { background-color: orange; width:200px;
}
.Sayonara { background-color: blue; width:200px;
}
Changing HTML Text with CSS and JS Week 3 - Script Codes JS Codes
function changecolor() { var dd1 = document.getElementById("d1"); var dd2 = document.getElementById("d2"); dd1.className = "blueback"; dd2.className = "yellowback";
}
function changetext() { var dd1 = document.getElementById("d1"); var dd2 = document.getElementById("d2"); dd1.innerHTML = "Bonjour"; dd2.innerHTML = "Sayonara"; dd1.className = "Bonjour"; dd2.className = "Sayonara";
}
Developer | Anshu Arora |
Username | anshusaxenaarora |
Uploaded | September 15, 2022 |
Rating | 3 |
Size | 1,829 Kb |
Views | 34,408 |
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!
Name | Size |
My Interests | 2,015 Kb |
A Pen by Anshu Arora | 1,558 Kb |
Webpage Example | 6,071 Kb |
Class 1 Week 1 | 1,263 Kb |
Green Screen - Foreground and Background Images | 1,817 Kb |
Interests | 1,523 Kb |
Upload and Display an Image | 1,938 Kb |
Canvas for Live Coding | 1,799 Kb |
Anshu Arora Webpage | 6,034 Kb |
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!
Name | Username | Size |
Snow collision | Wojtek1150 | 3,542 Kb |
Importable Clearfix | Corysimmons | 1,411 Kb |
Highbrow Basic HTML Lesson 7 | Kimlarocca | 1,662 Kb |
See Through | Larrygeams | 77,410 Kb |
CSS Heart Loaders | Nourabusoud | 2,161 Kb |
Pure CSS Animated Photo Stack | Depthdev | 2,486 Kb |
Amazing CSS Menu with Notification Badges | Faizanasad | 2,549 Kb |
Parallax scrolling scene | Iharosi | 2,485 Kb |
SCSS Simple Animated Drop-In | Danwarfel | 2,175 Kb |
Twitch JSON API | Jvhti | 2,808 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!