Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* FAIS UNE ALERTE */
- function accueil(){
- alert('Vous êtes déjà sur la page Accueil')
- }
- function hide1()
- {
- div = document.getElementById('precacher'); /* DEFINI UNE VARIABLE PAR RAPPORT A LID*/
- if (div.style.display == 'none') /* SI LA DIV EST INVISIBLE */
- div.style.display = 'inline-block'; /* ALORS LA DIV EST EN INLINE BLOCK*/
- else
- div.style.display = 'none'; /* SINON ELLE SE REMET EN INVISIBLE SI ELLE EST EN INLINEBLOCK */
- }
- function hide2() /*MEME CHOSE QUE PRECEDENT */
- {
- div1 = document.getElementById('compcacher');
- if (div1.style.display == 'none')
- div1.style.display = 'inline-block';
- else
- div1.style.display = 'none';
- }
- function hide3()/*MEME CHOSE QUE PRECEDENT */
- {
- div2 = document.getElementById('expcacher');
- if (div2.style.display =='none')
- div2.style.display = 'inline-block';
- else
- div2.style.display = 'none';
- }
- function hide4()/*MEME CHOSE QUE PRECEDENT */
- {
- div3 = document.getElementById('intcacher');
- if (div3.style.display =='none')
- div3.style.display = 'inline-block';
- else
- div3.style.display = 'none';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement