The numbering of the exercise is indicative of the level of difficulty, from the simplest to the most complicated. If you have any comments, questions or suggestions: write to us at info @bloginnovazione.it
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script>
function onMouseClick() {
document.getElementById("parag").style.fontWeight = "bold";
document.getElementById("parag").style.backgroundColor = "yellow";
}
function onMouseOverEvent() {
document.getElementById("parag").style.textDecoration = "underline";
document.getElementById("parag").style.backgroundColor = "orange";
}
function onMouseOutEvent() {
document.getElementById("parag").style.fontSize = "16px";
document.getElementById("parag").style.backgroundColor = "lightblue";
}
</script>
</head>
<body>
<p id="parag" >
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
input {
margin: 20px;
margin-bottom: 30px;
}
.box-1 {
display: flex;
justify-content: center;
align-items: center;
}
.box {
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 50px;
}
button {
padding: 5px;
width: 75px;
}
.container{
margin: 250px;
}
</style>
<script>
function onClick() {
let num1 = document.getElementById("num1").value;
let num2 = document.getElementById("num2").value;
let result;
if (!isNaN(num1) && !isNaN(num2)) {
result = parseFloat(num1) + parseFloat(num2);
} else {
result = num1 + num2;
}
document.getElementById("result").innerHTML = result;
}
</script>
</head>
<body>
<div class="container">
<div class="box-1">
<input id="num1" type="text" placeholder="Insert num or text . . .">
<input id="num2" type="text" placeholder="Insert num or text . . .">
</div>
<div class="box">
<button >
BlogInnovazione.it
Coveware by Veeam will continue to provide cyber extortion incident response services. Coveware will offer forensics and remediation capabilities…
Predictive maintenance is revolutionizing the oil & gas sector, with an innovative and proactive approach to plant management.…
The UK CMA has issued a warning about Big Tech's behavior in the artificial intelligence market. There…
The "Green Houses" Decree, formulated by the European Union to enhance the energy efficiency of buildings, has concluded its legislative process with…