Oštevilčenje vaje kaže na stopnjo težavnosti, od najpreprostejše do najbolj zapletene. Če imate pripombe, vprašanja ali predloge: pišite nam na 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
Prejšnji ponedeljek je Financial Times objavil dogovor z OpenAI. FT licencira svoje vrhunsko novinarstvo ...
Milijoni ljudi plačujejo storitve pretakanja in plačujejo mesečne naročnine. Splošno mnenje je, da si…
Coveware by Veeam bo še naprej zagotavljal storitve odzivanja na incidente kibernetskega izsiljevanja. Coveware bo nudil forenziko in zmogljivosti sanacije ...
Prediktivno vzdrževanje revolucionira sektor nafte in plina z inovativnim in proaktivnim pristopom k upravljanju obratov.…