Monday, June 15, 2020

RGB Color Mixer in HTML and CSS

A simple program was written by my good friend and fellow software engineer Sir Ernel to show how to use for loop statement using a javascript programming language.

 am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, IT projects, school and application development, programming projects, thesis, and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details. If you want to advertise on my website kindly contact me also in my email address also. Thank you.


My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.My mobile number here in the Philippines is 09173084360. My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking, and Arduino Project development at a very affordable price. My personal website is http://www.jakerpomperada.comMy programming website is http://www.jakerpomperada.blogspot.comI am also a book author you can purchase my books on computer programming and information technology in the following links below.https://www.unlimitedbooksph.com/

Program Listing

<h1>JavaScript For Loops</h1>
<h2 id="forloop"></h2>
<script>
var text="";
var i;
for (i = 0; i < 11; i++) {
    text += i + "<br>";
}
document.getElementById("forloop").innerHTML = text;
</script>

Time Date and Day Using JavaScript

A simple program was written by my good friend and fellow software engineer Sir Ernel to generate RGB color mixer in HTML and CSS.

 am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, IT projects, school and application development, programming projects, thesis, and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details. If you want to advertise on my website kindly contact me also in my email address also. Thank you.


My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.My mobile number here in the Philippines is 09173084360. My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking, and Arduino Project development at a very affordable price. My personal website is http://www.jakerpomperada.comMy programming website is http://www.jakerpomperada.blogspot.comI am also a book author you can purchase my books on computer programming and information technology in the following links below.https://www.unlimitedbooksph.com/

Program Listing

<!DOCTYPE html>
<html>
<head>
<title>Document</title>
<style>
form > input{
display: flex;
form > .bcm{
width: 100%;
height: 200px;
border: 1px solid grey;
background-color: rgb(0,0,0);
}
</style>
</head>
<body>

<form oninput="sett()">
<input type="range" id="x" max="255" value="0">
<input type="range" id="y" max="255" value="0">
<input type="range" id="z" max="255" value="0">
<div class="bcm"></div>
<code id="code">rgb(0,0,0);</code>
</form>
<script>

function sett()
{
var x = document.getElementById("x").value;
var y = document.getElementById("y").value;
var z = document.getElementById("z").value;

var ok = document.getElementsByClassName("bcm");
ok[0].style.backgroundColor = "rgb("+x+","+y+","+z+")";
var ct = document.getElementById("code");
ct.innerHTML = "rgb("+x+","+y+","+z+")"+";";
</script>
</body>
</html>

No comments:

Post a Comment