ph4x35ccb

Trilha da morte (css no fim da tag HTML) nivel hard

Apr 16th, 2019
341
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 7.50 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <title>Trilha da Morte!</title>
  5.     <script>
  6.         function saiuDaTrilha(){
  7.             alert("Sai fora da trilha Tente Denovo!");
  8.         }
  9.     </script>
  10. <link rel="stylesheet" type="text/css" href="gameestilo.css">
  11. </head>
  12. <body>
  13. <footer id="partida">
  14. <h1>Partida Lets's GO.. Men\Girl</h1>
  15. <h2>O objetivo e chegar na chegada com menor numero de tentativas Boa Sorte!</h2>
  16. <h1>INICIO</h1>
  17. </footer>
  18. <section id="corpo">
  19. <article id="elemento1" onmousemove="saiuDaTrilha()">
  20. </article>
  21. <article id="elemento2" onmousemove="saiuDaTrilha()">
  22. </article>
  23. <article id="elemento3" onmousemove="saiuDaTrilha()">
  24. </article>
  25. <article id="elemento4" onmousemove="saiuDaTrilha()">
  26. </article>
  27. <article id="elemento5" onmousemove="saiuDaTrilha()">
  28. </article>
  29. <article id="elemento6" onmousemove="saiuDaTrilha()">
  30. </article>
  31. <article id="elemento7" onmousemove="saiuDaTrilha()">
  32. </article>
  33. <article id="elemento8" onmousemove="saiuDaTrilha()">
  34. </article>
  35. <article id="elemento9" onmousemove="saiuDaTrilha()">
  36. </article>
  37. <article id="elemento10" onmousemove="saiuDaTrilha()">
  38. </article>
  39. </article>
  40. <article id="elemento11" onmousemove="saiuDaTrilha()">
  41. </article>
  42. <article id="elemento12" onmousemove="saiuDaTrilha()">
  43. </article>
  44. <article id="elemento13" onmousemove="saiuDaTrilha()">
  45. </article>
  46. <article id="elemento14" onmousemove="saiuDaTrilha()">
  47. </article>
  48. <article id="elemento15" onmousemove="saiuDaTrilha()">
  49. </article>
  50. <article id="elemento16" onmousemove="saiuDaTrilha()">
  51. </article>
  52. <article id="elemento17" onmousemove="saiuDaTrilha()">
  53. </article>
  54. <article id="elemento18" onmousemove="saiuDaTrilha()">
  55. </article>
  56. <article id="elemento19" onmousemove="saiuDaTrilha()">
  57. </article>
  58. <article id="elemento20" onmousemove="saiuDaTrilha()">
  59. </article>
  60. <article id="elemento21" onmousemove="saiuDaTrilha()">
  61. </article>
  62. <article id="elemento22" onmousemove="saiuDaTrilha()">
  63. </article>
  64. <article id="elemento23" onmousemove="saiuDaTrilha()">
  65. </article>
  66. <article id="elemento24" onmousemove="saiuDaTrilha()">
  67. </article>
  68. <article id="elemento25" onmousemove="saiuDaTrilha()">
  69. </article>
  70. <article id="elemento26" onmousemove="saiuDaTrilha()">
  71. </article>
  72. <article id="elemento27" onmousemove="saiuDaTrilha()">
  73. </article>
  74. <article id="elemento28" onmousemove="saiuDaTrilha()">
  75. </article>
  76. <article id="elemento29" onmousemove="saiuDaTrilha()">
  77. </article>
  78. <article id="elemento30" onmousemove="saiuDaTrilha()">
  79. </article>
  80. <article id="elemento31" onmousemove="saiuDaTrilha()">
  81. </article>
  82. <article id="elemento32" onmousemove="saiuDaTrilha()">
  83. </article>
  84. <article id="elemento33" onmousemove="saiuDaTrilha()">
  85. </article>
  86. <article id="elemento34" onmousemove="saiuDaTrilha()">
  87.     <h1>Chegada</h1>
  88. </article>
  89.  
  90. </section>
  91. </body>
  92. </html>
  93. //arquivo css//
  94. @import url('https://fonts.googleapis.com/css?family=Lobster');
  95. * {
  96. padding:0;
  97. margin:0;
  98. vertical-align:baseline;
  99. list-style:none;
  100. border:0
  101. }
  102. body{
  103.     background-color: #000000;
  104. }
  105. footer#partida{
  106.     width: 1000px;
  107.     height: 150px;
  108.     margin: 0 auto;
  109. }
  110. footer#partida h1{
  111.     font-family: 'Lobster', cursive;
  112.     color: red;
  113.     text-align: center;
  114.     text-shadow: 5px 5px 20px #ffffff;
  115. }
  116. footer#partida h2{
  117.     font-family: 'Lobster', cursive;
  118.     color: #ffffff;
  119.     text-align: center;
  120. }
  121. section#corpo{
  122.     width: 1000px;
  123.     height: 800px;
  124.     margin: 0 auto;
  125.     background-color: yellow;
  126.     border: 1px solid #000000;
  127. }
  128. article#elemento1{
  129.     width: 490px;
  130.     height: 60px;
  131.     float: left;
  132.     background: #000000;
  133. }
  134. article#elemento2{
  135.     width: 490px;
  136.     height: 60px;
  137.     float: right;
  138.     background: #000000;
  139. }
  140. article#elemento3{
  141.     width: 300px;
  142.     height: 70px;
  143.     background-color: #000000;
  144.     float: left;
  145.     margin-top: 6px;
  146. }
  147. article#elemento4{
  148.     width: 350px;
  149.     height: 70px;
  150.     background-color: #000000;
  151.     float: right;
  152.     margin-top: 6px;
  153. }
  154. article#elemento5{
  155.     width: 339px;
  156.     height: 70px;
  157.     background-color: #000000;
  158.     margin-left: 306px;
  159.     margin-top: 66px;
  160. }
  161. article#elemento6{
  162.     width:100px;
  163.     height: 70px;
  164.     background-color: #000000;
  165.     float: left;
  166.     margin-top: 6px;
  167. }
  168. article#elemento7{
  169.     width:100px;
  170.     height: 70px;
  171.     background-color: #000000;
  172.     float: right;
  173.     margin-top: 6px;
  174. }
  175. article#elemento8{
  176.     width:786px;
  177.     height: 70px;
  178.     background-color: #000000;
  179.     margin-left: 106px;
  180.     margin-top: 6px;
  181. }
  182. article#elemento9{
  183.     width: 497px;
  184.     height: 70px;
  185.     background-color: #000000;
  186.     float: left;
  187.     margin-top: 6px;
  188. }
  189. article#elemento10{
  190.     width: 497px;
  191.     height: 70px;
  192.     background-color: #000000;
  193.     float: right;
  194.     margin-top: 6px;
  195. }
  196. article#elemento11{
  197.     width: 300px;
  198.     height: 50px;
  199.     background-color: #000000;
  200.     float: left;
  201.     margin-top: 6px;
  202. }
  203. article#elemento12{
  204.     width: 300px;
  205.     height: 50px;
  206.     background-color: #000000;
  207.     float: right;
  208.     margin-top: 6px;
  209. }
  210. article#elemento13{
  211.     width: 387px;
  212.     height: 50px;
  213.     background-color: #000000;
  214.     float: right;
  215.     margin-top: 6px;
  216.     margin-right: 6px;
  217. }
  218. article#elemento14{
  219.     width: 50px;
  220.     height: 50px;
  221.     background-color: #000000;
  222.     float: left;
  223.     margin-top: 6px;
  224. }
  225. article#elemento15{
  226.     width: 50px;
  227.     height: 50px;
  228.     background-color: #000000;
  229.     float: right;
  230.     margin-top: 6px;
  231. }
  232. article#elemento16{
  233.     width: 890px;
  234.     height: 50px;
  235.     background-color: #000000;
  236.     float: right;
  237.     margin-top: 6px;
  238.     margin-right: 6px;
  239. }
  240. article#elemento17{
  241.     width: 497px;
  242.     height: 50px;
  243.     background-color: #000000;
  244.     float: left;
  245.     margin-top: 6px;
  246. }
  247. article#elemento18{
  248.     width: 497px;
  249.     height: 50px;
  250.     background-color: #000000;
  251.     float: right;
  252.     margin-top: 6px;
  253. }
  254. article#elemento19{
  255.     width: 390px;
  256.     height: 50px;
  257.     background-color: #000000;
  258.     float: right;
  259.     margin-top: 6px;
  260. }
  261. article#elemento20{
  262.     width: 300px;
  263.     height: 50px;
  264.     background-color: #000000;
  265.     float: left;
  266.     margin-top: 6px;
  267. }
  268. article#elemento21{
  269.     width: 300px;
  270.     height: 50px;
  271.     background-color: #000000;
  272.     float: right;
  273.     margin-top: 6px;
  274.     margin-right: 6px;
  275. }
  276. article#elemento22{
  277.     width: 450px;
  278.     height: 50px;
  279.     background-color: #000000;
  280.     float: left;
  281.     margin-top: 6px;
  282. }
  283. article#elemento23{
  284.     width: 543px;
  285.     height: 50px;
  286.     background-color: #000000;
  287.     float: right;
  288.     margin-top: 6px;
  289. }
  290. article#elemento24{
  291.     width: 30px;
  292.     height: 50px;
  293.     background-color: #000000;
  294.     float: left;
  295.     margin-top: 6px;
  296. }
  297. article#elemento25{
  298.     width: 190px;
  299.     height: 50px;
  300.     background-color: #000000;
  301.     float: right;
  302.     margin-top: 6px;
  303. }
  304. article#elemento26{
  305.     width: 768px;
  306.     height: 50px;
  307.     background-color: #000000;
  308.     margin-top: 6px;
  309.     margin-right: 6px;
  310.     float: right;
  311. }
  312. article#elemento27{
  313.     width: 497px;
  314.     height: 40px;
  315.     background-color: #000000;
  316.     float: left;
  317.     margin-top: 6px;
  318. }
  319. article#elemento28{
  320.     width: 497px;
  321.     height: 40px;
  322.     background-color: #000000;
  323.     float: right;
  324.     margin-top: 6px;
  325. }
  326. article#elemento29{
  327.     width: 250px;
  328.     height: 40px;
  329.     background-color: #000000;
  330.     float: left;
  331.     margin-top: 6px;
  332. }
  333. article#elemento30{
  334.     width: 250px;
  335.     height: 40px;
  336.     background-color: #000000;
  337.     float: right;
  338.     margin-top: 6px;
  339. }
  340. article#elemento31{
  341.     width: 488px;
  342.     height: 40px;
  343.     background-color: #000000;
  344.     float: right;
  345.     margin-right: 6px;
  346.     margin-top: 6px;
  347. }
  348. article#elemento32{
  349.     width: 490px;
  350.     height: 40px;
  351.     background-color: #000000;
  352.     float: left;
  353.     margin-top: 6px;
  354. }
  355. article#elemento33{
  356.     width: 490px;
  357.     height: 40px;
  358.     background-color: #000000;
  359.     float: right;
  360.     margin-top: 6px;
  361. }
  362. article#elemento34{
  363.     width: 1000px;
  364.     height: 50px;
  365.     float: right;
  366.     background-color: yellow;
  367. }
  368. article#elemento34 h1{
  369.     font-size: 30pt;
  370.     color: red;
  371.     text-align: center;
  372.     font-family: 'Lobster', cursive;
  373. }
Advertisement
Add Comment
Please, Sign In to add comment