Color chooser practice-1
How do I make an color chooser practice-1?
What is a color chooser practice-1? How do you make a color chooser practice-1? This script and codes were developed by Lichi Chen on 18 October 2022, Tuesday.
Color chooser practice-1 - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>color chooser practice-1</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1>Canvas Element</h1>
<canvas id="one"></canvas>
<p> <input type = "button" value = "black" onclick = "doblack()"> <input id = "clr" type = "color" value = "#0000FF" onchange = "docolor()">
</p> <script src="js/index.js"></script>
</body>
</html>
Color chooser practice-1 - Script Codes CSS Codes
canvas { width: 200px; hight: 100px; margin: 20px;
}
Color chooser practice-1 - Script Codes JS Codes
function doblack() { var c1 = document.getElementById("one"); c1.style.backgroundColor = "black";
}
function docolor() { var c1 = document.getElementById("one"); var colorinput = document.getElementById("clr"); var color = colorinput.value; c1.style.backgroundColor = color;
}
Developer | Lichi Chen |
Username | chenlichiclc |
Uploaded | October 18, 2022 |
Rating | 3 |
Size | 1,730 Kb |
Views | 18,216 |
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 |
The Filter Page-3 | 2,033 Kb |
Week 3 | 2,287 Kb |
2 | 1,975 Kb |
My Interests Page | 2,331 Kb |
Upload and Display | 2,022 Kb |
1 | 1,885 Kb |
3 | 1,905 Kb |
Draft | 2,161 Kb |
Color chooser practice-2 | 1,887 Kb |
The Filter Page | 3,026 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 |
BabyStore | Pablo-Ai | 3,807 Kb |
Pictos font library from CodePen | Jstam | 3,790 Kb |
Mostly Fluid | Mccreath | 3,308 Kb |
Monochrome Form | AlienPiglet | 3,096 Kb |
A Pen by Markku Lehmonen | SharpDal | 7,804 Kb |
A Pen by Mohomed Anees | Mohomedanees | 12,597 Kb |
Preloader | Rikki_Sixx | 2,815 Kb |
A Pen by Oliver Schafeld | Schafeld | 1,720 Kb |
Button Option Group | Honchoman | 1,859 Kb |
Flexbox Test | Icutpeople | 2,486 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!