2022-2023/1NSI/08_Interaction_web/script/1E_interaction.js

10 lines
266 B
JavaScript

function apparition(){
langages.style.backgroundColor = "white";
}
function disparition(){
langages.style.backgroundColor = "blue";
}
langages.onmouseover = disparition ;
langages.onmouseleave = apparition ;
langages.onclick = function() { alert("Clic !") ; } ;