Advertisement
Pihtija

SKI poslednja

Jan 22nd, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <title>Document</title>
  8. <style>
  9. div{
  10. border: 1px solid black
  11. }
  12. #prav{
  13. width: 50px;
  14. height: 150px;
  15. }
  16. .krug{
  17. display: block;
  18. width: 50px;
  19. height: 50px;
  20. border-radius: 50%;
  21.  
  22. }
  23. </style>
  24. </head>
  25. <body>
  26. <div id="prav">
  27. <div id="crveni" class="krug"></div>
  28. <div id="zuti" class="krug"></div>
  29. <div id="zeleni" class="krug"></div>
  30. </div>
  31. <script>
  32. var t=setInterval(
  33. var t1=setTimeout(function(){
  34. document.getElementById("crveni").style.backgroundColor="red"
  35.  
  36. ,1000);
  37. </script>
  38. </body>
  39. </html>
  40.  
  41.  
  42. -----------------------------------
  43.  
  44.  
  45. <!DOCTYPE html>
  46. <html lang="en">
  47. <head>
  48. <meta charset="UTF-8">
  49. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  50. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  51. <title>Document</title>
  52. </head>
  53. <body>
  54. <script>
  55. // var p=document.createElement("p");
  56. // p.setAttribute("id","p1");
  57. // document.body.appendChild(p);
  58.  
  59. // var t=setInterval(function(){
  60. // document.getElementById("p1").innerHTML=new Date();
  61. // },1000)
  62.  
  63. // var t1=setTimeout(function(){
  64. // document.getElementById("p1").innerHTML=new Date();
  65. // },3000)
  66.  
  67.  
  68. </script>
  69. </body>
  70. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement