Advertisement
Felanpro

Remembering code

Sep 26th, 2015
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.62 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.  
  4. <head>
  5.  
  6. <title>Javascript</title>
  7.  
  8. <style>
  9. #p100 {
  10. padding-left:1000px;
  11. }
  12. </style>
  13.  
  14. <style>
  15. #div100 {
  16. width:70px;
  17. height:70px;
  18. color:white;
  19. text-align:center;
  20. background-color:#1947D1;
  21. border:10px ridge #5E7EDF;
  22. }
  23. </style>
  24.  
  25. <style>
  26. hr {
  27. height:10px;
  28. background-color:green;
  29. }
  30. </style>
  31.  
  32. <script>
  33. function myFunction() {
  34. document.getElementById("paragraph").innerHTML = "You changed the paragraph Felix!";
  35. }
  36. </script>
  37.  
  38.  
  39. <script>
  40. function myFunction2() {
  41. document.getElementById("paragraph2").innerHTML = "You changed the paragraph Felix!";
  42. }
  43. </script>
  44.  
  45. <style>
  46. #h1css {
  47. color: #FF0000;
  48. }
  49. </style>
  50.  
  51. <script>
  52. function myFunction3() {
  53. document.getElementById("paragraph3").innerHTML = "The text has appeared!"
  54. }
  55. </script>
  56.  
  57. <script>
  58. function myFunction4() {
  59. document.getElementById("paragraph4").style.color = "red";
  60. }
  61. </script>
  62.  
  63.  
  64. </head>
  65.  
  66.  
  67. <body>
  68.  
  69. <h1 id="h1css">Javascript</h1>
  70. <hr>
  71. <h1>Example 1</h1>
  72. <p id="paragraph">Change this paragraph Felix!</p>
  73.  
  74. <button type="button" onclick="myFunction()">Click me!</button>
  75. <hr>
  76. <h1>Example 2</h1>
  77. <p id="paragraph2">Change this paragraph Felix!</p>
  78.  
  79. <button type="button"
  80. onclick="myFunction2()">Click me!</button>                      
  81. <hr>
  82. <h1>Example 3</h1>
  83. <p id="paragraph6">Change this paragraph Felix!</p>
  84.  
  85. <button onclick="myFunction5()">Click me!</button>
  86.  
  87.  
  88. <hr>
  89. <h1>Other things</h1>
  90. <p>After you've clicked the button it should appear another paragraph right underneath it.</p>
  91.  
  92. <button type="button" onclick="myFunction3()">Click me!</button>
  93.  
  94. <p id="paragraph3"></p>                                            
  95. <hr>
  96. <h1>Other things 2</h1>
  97. <p id="paragraph4">After clicking the button this text should be red.</p>
  98.  
  99. <button type="button" onclick="myFunction4()">Click me!</button>
  100. <hr>
  101.  
  102. <script src="javascript.js"></script>
  103.  
  104. <h1>Very usefull</h1>
  105. <p>Cool thing after you've clicked.</p>
  106.  
  107. <button type="button" onclick="document.write(11)">Click me!</button>
  108. <hr>
  109.  
  110. <p id="weed123"></p>
  111.  
  112. <script>
  113. var weed = 100;
  114. var smoke = 100;
  115. var together = weed + " hola como estas?";
  116. document.getElementById("weed123").innerHTML = together;
  117. </script>
  118.  
  119. <p id="demo100"></p>
  120.  
  121. <script>
  122. document.getElementById("demo100").innerHTML = 10.50;
  123. </script>
  124.  
  125. <p id="demo200"></p>
  126.  
  127. <script>
  128. document.getElementById("demo200").innerHTML = 'John Doe';
  129. </script>
  130.  
  131. <p id="demo300"></p>
  132.  
  133. <script>
  134. var x;
  135. x = 6;
  136. document.getElementById("demo300").innerHTML = x;
  137. </script>
  138.  
  139. <hr>
  140.  
  141. <center>
  142. <pre>
  143.  
  144. <div id="div100"><h1>3D</h1></div>
  145. </pre>
  146. </center>
  147.  
  148. <p id="p100">LOL</p>
  149.  
  150. </body>
  151.  
  152. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement