Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* FAIS UNE ALERTE */
  2. function accueil(){
  3.     alert('Vous êtes déjà sur la page Accueil')
  4. }
  5.  
  6.  
  7.  
  8. function hide1()
  9. {
  10. div = document.getElementById('precacher'); /* DEFINI UNE VARIABLE PAR RAPPORT A LID*/
  11.  
  12. if (div.style.display == 'none') /* SI LA DIV EST INVISIBLE */
  13. div.style.display = 'inline-block'; /* ALORS LA DIV EST EN INLINE BLOCK*/
  14. else
  15. div.style.display = 'none'; /* SINON ELLE SE REMET EN INVISIBLE SI ELLE EST EN INLINEBLOCK */
  16.  
  17. }
  18. function hide2() /*MEME CHOSE QUE PRECEDENT */
  19. {
  20. div1 = document.getElementById('compcacher');
  21.  
  22. if (div1.style.display == 'none')
  23. div1.style.display = 'inline-block';
  24. else
  25. div1.style.display = 'none';
  26.  
  27. }
  28. function hide3()/*MEME CHOSE QUE PRECEDENT */
  29. {
  30.     div2 = document.getElementById('expcacher');
  31.    
  32. if (div2.style.display =='none')
  33.     div2.style.display = 'inline-block';
  34. else
  35. div2.style.display = 'none';
  36. }
  37. function hide4()/*MEME CHOSE QUE PRECEDENT */
  38. {
  39.     div3 = document.getElementById('intcacher');
  40.    
  41. if (div3.style.display =='none')
  42.     div3.style.display = 'inline-block';
  43. else
  44. div3.style.display = 'none';
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement