Advertisement
patryk178

Untitled

Mar 12th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.70 KB | None | 0 0
  1. //index.html//
  2. <html>
  3.  
  4. <head>
  5. <meta charset="UTF-8">
  6. <style>
  7. #caly
  8. {
  9. width: 1000px;
  10. height: 100%;
  11. margin: 20px auto;
  12. }
  13.  
  14. #naglowek
  15. {
  16. width: 100%;
  17. height: 100px;
  18. background-color: bisque;
  19.  
  20. }
  21.  
  22. #menu
  23. {
  24. float: left;
  25. width: 20%;
  26. background-color: bisque;
  27. height: 500px;
  28. }
  29.  
  30. #tresc
  31. {
  32. float: left;
  33. width: 60%;
  34. height: 500px;
  35. }
  36.  
  37. #nowosci
  38. {
  39. float: left;
  40. width: 20%;
  41. background-color: bisque;
  42. height: 500px;
  43.  
  44. }
  45.  
  46. #stopka
  47. {
  48. clear: both;
  49. width: 100%;
  50. height: 70px;
  51. background-color: bisque;
  52. }
  53.  
  54. #nowosci img
  55. {
  56. width: 100%;
  57. }
  58.  
  59. </style>
  60. </head>
  61.  
  62. <body onload="nowosci()">
  63. <div id="caly">
  64. <div id="naglowek">
  65. <center><h1>Indywidualne Zaproszenia :)</h1></center>
  66. </div>
  67. <div id="menu">
  68. <a href="index.html">Strona główna</a><br>
  69. <a href="zaproszenia.html">Zaproszenia</a><br>
  70. <a href="kontakt.html">Kontakt</a><br>
  71. </div>
  72. <div id="tresc">
  73. Opis strony - nie chce mi się go przepisywać
  74. <ul>
  75. <li>Szeroki wybór szablonów</li>
  76. <li>Najwyższą jakość druku</li>
  77. <li>Szybki termin realizacji</li>
  78. </ul>
  79. </div>
  80. <div id="nowosci">
  81.  
  82. </div>
  83. <div id="stopka">
  84. Patryk Ledzion 12.03.2019 Notepad++
  85. </div>
  86. </div>
  87. <script>
  88. function nowosci()
  89. {
  90. var rnd = Math.floor(Math.random()*5+1);
  91. document.getElementById("nowosci").innerHTML = '<a href="zdj'+rnd+'.png"><img src="zdj'+rnd+'.png"></a>';
  92. }
  93. </script>
  94. </body>
  95.  
  96. </html>
  97.  
  98.  
  99. //Zaproszenia.html//
  100. <html>
  101.  
  102. <head>
  103. <meta charset="UTF-8">
  104. <style>
  105. #caly
  106. {
  107. width: 1000px;
  108. height: 100%;
  109. margin: 20px auto;
  110. }
  111.  
  112. #naglowek
  113. {
  114. width: 100%;
  115. height: 100px;
  116. background-color: bisque;
  117.  
  118. }
  119.  
  120. #menu
  121. {
  122. float: left;
  123. width: 20%;
  124. background-color: bisque;
  125. height: 500px;
  126. }
  127.  
  128. #tresc
  129. {
  130. float: left;
  131. width: 60%;
  132. height: 500px;
  133. }
  134.  
  135. #nowosci
  136. {
  137. float: left;
  138. width: 20%;
  139. background-color: bisque;
  140. height: 500px;
  141.  
  142. }
  143.  
  144. #stopka
  145. {
  146. clear: both;
  147. width: 100%;
  148. height: 70px;
  149. background-color: bisque;
  150. }
  151.  
  152. #nowosci img
  153. {
  154. width: 100%;
  155. }
  156.  
  157. img
  158. {
  159. cursor: pointer;
  160. }
  161.  
  162. </style>
  163. </head>
  164.  
  165. <body onload="nowosci()">
  166. <div id="caly">
  167. <div id="naglowek">
  168. <center><h1>Indywidualne Zaproszenia :)</h1></center>
  169. </div>
  170. <div id="menu">
  171. <a href="index.html">Strona główna</a><br>
  172. <a href="zaproszenia.html">Zaproszenia</a><br>
  173. <a href="kontakt.html">Kontakt</a><br>
  174. </div>
  175. <div id="tresc">
  176. <img src="zdj1.png" onclick="otworz_zdjecie(1)">
  177. <img src="zdj2.png" onclick="otworz_zdjecie(2)">
  178. <img src="zdj3.png" onclick="otworz_zdjecie(3)">
  179. <img src="zdj4.png" onclick="otworz_zdjecie(4)">
  180. <img src="zdj5.png" onclick="otworz_zdjecie(5)">
  181. </div>
  182. <div id="nowosci">
  183.  
  184. </div>
  185. <div id="stopka">
  186. Patryk Ledzion 12.03.2019 Notepad++
  187. </div>
  188. </div>
  189. <script>
  190. function nowosci()
  191. {
  192. var rnd = Math.floor(Math.random()*5+1);
  193. document.getElementById("nowosci").innerHTML = '<a href="zdj'+rnd+'.png"><img src="zdj'+rnd+'.png"></a>';
  194. }
  195.  
  196. function otworz_zdjecie(x)
  197. {
  198. var okno = open("","okno","WIDTH=500,HEIGHT=300");
  199. okno.document.body.innerHTML = "";
  200. okno.document.write('<img src="zdj'+x+'.png" width="500" height="300">');
  201. }
  202. </script>
  203. </body>
  204.  
  205. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement