Advertisement
Guest User

Untitled

a guest
May 24th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. <div id="parent_popup">
  2. <div id="popup">
  3. <h5>Режим работы в майские праздники</h5>
  4. <br />
  5. <p style="color: red;">1, 2, 4, 5, 9, 10, 12 мая - выходные </p>
  6. <p>6 - 8 мая - с 9:00 до 20:00</p>
  7. <p>3, 11 мая - c 10:00 до 16:00</p>
  8. <a class="close"title="Закрыть" onclick="document.getElementById('parent_popup').style.display='none';">X</a></div>
  9. </div>
  10. <script type="text/javascript">var delay_popup = 5000;setTimeout("document.getElementById('parent_popup').style.display='block'", delay_popup);</script>
  11.  
  12. <style>
  13. #parent_popup{
  14. background-color: rgba(0, 0, 0, 0.8);
  15. display: none;
  16. position: fixed;
  17. z-index: 99999;
  18. top: 0;
  19. right: 0;
  20. bottom: 0;
  21. left: 0;
  22. }
  23. #popup{
  24. background: #fff;
  25. width: 520px;
  26. margin: 10% auto;
  27. padding: 20px 20px 13px 20px;
  28. border: 10px solid #ddd;
  29. position: relative;
  30. -webkit-box-shadow: 0px 0px 20px #000;
  31. -moz-box-shadow: 0px 0px 20px #000;
  32. box-shadow: 0px 0px 20px #000;
  33. -webkit-border-radius: 15px;
  34. -moz-border-radius: 15px;
  35. border-radius: 15px;
  36. text-align: center;
  37. color: black;
  38. font-size: 24px;
  39.  
  40. }
  41. .close{
  42. background-color: rgba(0, 0, 0, 0.8);
  43. border: 2px solid #ccc;
  44. height: 24px;
  45. line-height: 24px;
  46. position: absolute;
  47. right: -24px;
  48. cursor: pointer;
  49. font-weight: bold;
  50. text-align: center;
  51. text-decoration: none;
  52. color: rgba(255, 255, 255, 0.9);
  53. font-size: 14px;
  54. text-shadow: 0 -1px rgba(0, 0, 0, 0.9);
  55. top: -24px;
  56. width: 24px;
  57. -webkit-border-radius: 15px;
  58. -moz-border-radius: 15px;
  59. -ms-border-radius: 15px;
  60. -o-border-radius: 15px;
  61. border-radius: 15px;
  62. -moz-box-shadow: 1px 1px 3px #000;
  63. -webkit-box-shadow: 1px 1px 3px #000;
  64. box-shadow: 1px 1px 3px #000;
  65. }
  66. .close:hover{
  67. background-color: rgba(0, 122, 200, 0.8);
  68. }
  69. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement