SHARE
TWEET

Untitled

a guest Oct 21st, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html lang="pl">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>javunia</title>
  6. <script>
  7. var klik=0;
  8. var stan= ['visible', 'hidden']
  9. var napisy=['Ukryj Obrazki', 'Poka┼╝ Obrazki']
  10.  
  11.  
  12. function jsUkryj(){
  13. var N=document.images.length;
  14. klik= (klik+1)%2
  15. for(i=0; i<N; i++)
  16.     document.images[i].style.visibility=stan[klik];
  17.  
  18. baton.textContent=napisy[klik]
  19. }
  20.  
  21. </script>
  22. </head>
  23. <style>
  24.  
  25. </style>
  26. <body>
  27. <h1>JavaScript lekcja 4</h1>
  28. <img src='obrazki/kwadrat0.png'alt='x'></img>
  29. <img src='obrazki/kwadrat1.png'alt='x'></img>
  30. <img src='obrazki/kwadrat2.png'alt='x'></img>
  31. <img src='obrazki/kwadrat3.png'alt='x'></img>
  32. <img src='obrazki/kwadrat4.png'alt='x'></img>
  33. <img src='obrazki/kwadrat5.png'alt='x'></img>
  34. <img src='obrazki/kwadrat6.png'alt='x'></img>
  35. <img src='obrazki/kwadrat7.png'alt='x'></img>
  36. <br>
  37. <button id='baton' onclick='jsUkryj()'>Ukryj Obrazki</button>
  38. </body>
  39. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top