-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c2b2520
commit bd848bc
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,40 @@ | ||
document.addEventListener("DOMContentLoaded", function () { | ||
|
||
function change_lyon(){ | ||
let lyon_img = document.getElementById("lyon"); // acces a l'element HTML par son id | ||
let lyon_img = document.getElementById("lyon_img"); // acces a l'element HTML par son id | ||
lyon_img.setAttribute("src", "lyon2.jpg"); // modification d'un attribut de l'element HTML | ||
} | ||
|
||
function restaure_lyon(){ | ||
let lyon_img = document.getElementById("lyon"); // acces a l'element HTML par son id | ||
let lyon_img = document.getElementById("lyon_img"); // acces a l'element HTML par son id | ||
lyon_img.setAttribute("src", "lyon1.jpg"); // modification d'un attribut de l'element HTML | ||
} | ||
function change_egalite(){ | ||
let egalite_img = document.getElementById("egalite"); // acces a l'element HTML par son id | ||
let egalite_img = document.getElementById("egalite_img"); // acces a l'element HTML par son id | ||
egalite_img.setAttribute("src", "egalite2.png"); // modification d'un attribut de l'element HTML | ||
} | ||
|
||
function restaure_egalite(){ | ||
let egalite_img = document.getElementById("egalite"); // acces a l'element HTML par son id | ||
let egalite_img = document.getElementById("egalite_img"); // acces a l'element HTML par son id | ||
egalite_img.setAttribute("src", "egalite1.jpg"); // modification d'un attribut de l'element HTML | ||
} | ||
function change_socrates(){ | ||
let socrates_img = document.getElementById("socrates"); // acces a l'element HTML par son id | ||
let socrates_img = document.getElementById("socrates_img"); // acces a l'element HTML par son id | ||
socrates_img.setAttribute("src", "socrates2.jpg"); // modification d'un attribut de l'element HTML | ||
} | ||
|
||
function restaure_socrates(){ | ||
let socrates_img = document.getElementById("socrates"); // acces a l'element HTML par son id | ||
let socrates_img = document.getElementById("socrates_img"); // acces a l'element HTML par son id | ||
socrates_img.setAttribute("src", "socrates1.jpg"); // modification d'un attribut de l'element HTML | ||
} | ||
|
||
function change_science(){ | ||
let science_img = document.getElementById("science"); // acces a l'element HTML par son id | ||
let science_img = document.getElementById("science_img"); // acces a l'element HTML par son id | ||
science_img.setAttribute("src", "science2.jpg"); // modification d'un attribut de l'element HTML | ||
} | ||
|
||
function restaure_science(){ | ||
let science_img = document.getElementById("science"); // acces a l'element HTML par son id | ||
let science_img = document.getElementById("science_img"); // acces a l'element HTML par son id | ||
science_img.setAttribute("src", "science1.jpg"); // modification d'un attribut de l'element HTML | ||
} | ||
}); |