Advertisement
Guest User

Untitled

a guest
Jul 25th, 2014
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.70 KB | None | 0 0
  1. <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.js"></script>
  2. <style type="text/css">
  3. #overlay {
  4. position: fixed;
  5. top: 0;
  6. left: 0;
  7. width: 100%;
  8. height: 100%;
  9. background-color: #000;
  10. filter:alpha(opacity=70);
  11. -moz-opacity: 0.95;
  12. -khtml-opacity: 0.95;
  13. opacity: 0.95;
  14. z-index: 100;
  15. display: none;
  16. }
  17. .cnt223 a{
  18. text-decoration: none;
  19. }
  20. .popup{
  21. width: 70%;
  22. margin: 0 auto;
  23. display: none;
  24. position: fixed;
  25. z-index: 101;
  26. top: 50px;
  27. }
  28. .cnt223{
  29. min-width: 600px;
  30. width: 600px;
  31. min-height: 150px;
  32. margin: 100px auto;
  33. background: #f3f3f3;
  34. position: relative;
  35. z-index: 103;
  36. padding: 10px;
  37. border-radius: 5px;
  38. box-shadow: 0 2px 5px #000;
  39. }
  40. .cnt223 p{
  41. clear: both;
  42. color: #555555;
  43. text-align: justify;
  44. }
  45. .cnt223 p a{
  46. color: #d91900;
  47. font-weight: bold;
  48. }
  49. .cnt223 .x{
  50. float: right;
  51. height: 35px;
  52. left: 22px;
  53. position: relative;
  54. top: -25px;
  55. width: 34px;
  56. }
  57. .cnt223 .x:hover{
  58. cursor: pointer;
  59. }
  60. .style1 {
  61. text-align: center;
  62. }
  63. </style>
  64. <script type='text/javascript'>
  65. $(function(){
  66. var overlay = $('<div id="overlay"></div>');
  67. overlay.show();
  68. overlay.appendTo(document.body);
  69. $('.popup').show();
  70. $('.close').click(function(){
  71. $('.popup').hide();
  72. overlay.appendTo(document.body).remove();
  73. return false;
  74. });
  75.  
  76. $('.x').click(function(){
  77. $('.popup').hide();
  78. overlay.appendTo(document.body).remove();
  79. return false;
  80. });
  81. });
  82. </script>
  83. <script>
  84. function showText(id,delay){
  85. var elem=document.getElementById(id);
  86. setTimeout(function(){elem.style.visibility='visible';},delay*1000)
  87. }
  88. window.onload=function(){
  89. showText('delayedText3',60);
  90. }
  91. </script>
  92. <script language="javascript">
  93. var max_time = 60;
  94. var cinterval;
  95.  
  96. function countdown_timer(){
  97. // decrease timer
  98. max_time--;
  99. document.getElementById('countdown').innerHTML = max_time;
  100. if(max_time == 0){
  101. clearInterval(cinterval);
  102. }
  103. }
  104. // 1,000 means 1 second.
  105. cinterval = setInterval('countdown_timer()', 1000);
  106. </script>
  107.  
  108. <div class='popup'>
  109. <div class='cnt223'>
  110. <p class="style1">
  111. <strong>
  112. <center>
  113. <font color="red">Klikni na sliku da pogledas GIF/Sliku ili cekaj 60 sekundi.</font></center>
  114. </strong>
  115.  
  116. <br/>
  117. <br/>
  118. <center>
  119. <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  120. <!-- Blog slike -->
  121. <ins class="adsbygoogle"
  122. style="display:inline-block;width:336px;height:280px"
  123. data-ad-client="ca-pub-3626159287188817"
  124. data-ad-slot="2588435683"></ins>
  125. <script>
  126. (adsbygoogle = window.adsbygoogle || []).push({});
  127. </script>
  128. <br />
  129. <br />
  130.  
  131. Mogucnost zatvaranja za: (<span id="countdown">60</span>) sekundi <div id="delayedText3" style="visibility:hidden"><a href='' class='close'>OVDJE</a></div>
  132.  
  133. </center></p>
  134. </div>
  135. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement