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

10 lines
244 B
JavaScript

function apparition(){
list.style.visibility = "visible";
}
function disparition(){
list.style.visibility = "hidden";
}
list.onmouseover = disparition ;
list.onmouseleave = apparition ;
list.onclick = function() { alert("Clic !") ; } ;