SHARE
TWEET

Untitled

a guest Apr 10th, 2020 124 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.  
  5.  
  6.  
  7. </head>
  8.  
  9. <body>
  10.  
  11.     <h1>test</h1>
  12.  
  13.     <div id=div1 style="height: 100px; width: 100px; background-color: blue;" onclick="div1_opacity()">   div1  </div>
  14.  
  15.     <button id=butt1> go </button>
  16.  
  17. </body>
  18. <script>
  19. function div1_opacity() {
  20.     if(document.getElementById("div1").style.opacity==1)
  21.         document.getElementById("div1").style.opacity=0
  22.     else
  23.         document.getElementById("div1").style.opacity=1;
  24. }
  25. </script>
  26. </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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top