SHARE
TWEET

Untitled

a guest Nov 2nd, 2019 168 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <head>
  2. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
  3. <script>
  4. $(document).ready(function(){
  5.   $("#7").click(function(){
  6.     $("#7").addClass("bg");
  7.   });
  8. });
  9.  
  10. $(document).ready(function(){
  11.   $("#7").click(setInterval(function(){
  12.     $("#7").addClass("bgo");
  13.   }, 2000));
  14. });
  15.  
  16. $(document).ready(function(){
  17.   $("#8").click(function(){
  18.     $("#8").addClass("bg");
  19.   });
  20. });
  21.  
  22. $(document).ready(function(){
  23.   $("#8").click(setInterval(function(){
  24.     $("#8").addClass("bgo");
  25.   }, 2000));
  26. });
  27.  </script>
  28. </head>
  29.  
  30. <body>
  31. <td id="7" class="bgo">7</td>
  32. <td id="8" class="bgo">8</td>
  33.  
  34. <style>
  35. td{
  36. border-radius: 30%;
  37. border: 1px solid black ;
  38. width: 100px;
  39. background: url('FirstBackground.jpg');
  40. }
  41. .bg{
  42. background: url('SecondBackground.jpg');
  43. }
  44. .bgo{
  45. background: url('FirstBackground.jpg');
  46. </style>
  47. </body>
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