Advertisement
Galebickosikasa

Untitled

Dec 22nd, 2020
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Allosaurus Page</title>
  6. <link rel="stylesheet" href="style.css">
  7. </head>
  8. <body>
  9. <div class="main_container">
  10. <div class="slideshow-container">
  11. <div class="mySlides fade">
  12. <img src="https://static.wikia.nocookie.net/prenistoricpark/images/0/04/Allosaurus_01.jpg/revision/latest/top-crop/width/360/height/450?cb=20170216043004&path-prefix=ru">
  13. </div>
  14.  
  15. <div class="mySlides fade">
  16. <img src="https://vignette.wikia.nocookie.net/the-isle-russian/images/c/c3/Allosaurus.jpg/revision/latest?cb=20190324200704&path-prefix=ru" width="80%" class=kek1>
  17. </div>
  18.  
  19. <div class="mySlides fade">
  20. <img src="https://avatars.mds.yandex.net/get-zen_doc/108057/pub_5c48b3af906b1600ae1406e1_5c48b4d4c08f7000ad30eaf2/scale_1200" width="70%" class=kek1>
  21. </div>
  22. <div class="mySlides fade">
  23. <img src="https://static.wikia.nocookie.net/jurassicpark/images/d/d9/Ezgif-7-28ef4dae82fc.gif/revision/latest/scale-to-width-down/340?cb=20200201183314&path-prefix=ru" width="70%" class=kek1>
  24. </div>
  25.  
  26. <a class="prev" onclick="plusSlides(-1)">&#10094;</a>
  27. <a class="next" onclick="plusSlides(1)">&#10095;</a>
  28. </div>
  29.  
  30. <div class="additional_text1">
  31. <o class="cool_text">Протыкай кнопочки ))0) -></o>
  32. </div>
  33. <div class="additional_image1">
  34. <img src="https://memepedia.ru/wp-content/uploads/2020/04/rick.jpg" width=80%>
  35. </div>
  36. </div>
  37. <script>
  38. var slideIndex = 1;
  39. showSlides(slideIndex);
  40.  
  41. function plusSlides(n) {
  42. showSlides(slideIndex += n);
  43. }
  44.  
  45. function currentSlide(n) {
  46. showSlides(slideIndex = n);
  47. }
  48.  
  49. function showSlides(n) {
  50. var i;
  51. var slides = document.getElementsByClassName("mySlides");
  52. if (n > slides.length) {slideIndex = 1}
  53. if (n < 1) {slideIndex = slides.length}
  54. for (i = 0; i < slides.length; i++) {
  55. slides[i].style.display = "none";
  56. }
  57. slides[slideIndex-1].style.display = "block";
  58. }
  59. </script>
  60. </body>
  61. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement