Advertisement
anatolionobre

INTRO Video+Imagem

Sep 12th, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.13 KB | None | 0 0
  1. <style>
  2. video {
  3. height: auto;
  4. width: 534px;
  5. top: 35px;
  6. left: 234px;
  7. position: absolute;
  8. z-index: 98888888888;
  9. border: 1px solid #0d3371;
  10. }
  11. #div_apb_conf {
  12. height: 600px;
  13. width: 800px;
  14. border: 1px solid #ccc;
  15. background-color: #333;
  16. position:relative;
  17. background-image:url('http://cdn.iol.pt/pub/nissan/xtrail/nissan_xtrail_800x600.jpg');
  18. margin:auto;
  19. }
  20.  
  21. #clickContainer{
  22. z-index: 88888888888;
  23. position: absolute;
  24. opacity: 0;
  25. cursor: pointer;
  26. width: 98%;
  27. height: 98%;
  28. right: 0;
  29. top:0;
  30. }
  31. #intro-pub-iframe{
  32. width:[%creativeWidth%]px;
  33. height:[%creativeHeight%]px;
  34. margin: auto;
  35. }
  36. #intro-pub-iframe-container{
  37. width:[%creativeWidth%]px;
  38. height:[%creativeHeight%]px;
  39. margin: 61px auto;
  40. }
  41.  
  42. #closebutton {
  43. background-image: url('http://cdn.iol.pt/js/pub/close.gif');
  44. background-size: 202px 35px;
  45. background-position: left top;
  46. background-repeat:no-repeat;
  47. background-size:contain;
  48. position: absolute;
  49. z-index: 99999999999;
  50. width: 202px;
  51. height: 35px;
  52. top: 20px;
  53. left: 50%;
  54. margin-left: 200px;
  55. cursor: pointer;
  56. }
  57.  
  58.  
  59. .intro-container {
  60. background-color: #E2E2E2;
  61. background-repeat: no-repeat;
  62. background-position: center center;
  63. -webkit-background-size: contain;
  64. -moz-background-size: contain;
  65. -o-background-size: contain;
  66. background-size: contain;
  67. width: 100%;
  68. height: 6000px;
  69. cursor: pointer;
  70. background-color: white;
  71. z-index: 10000000;
  72. position: fixed;
  73. cursor: pointer;
  74. left:0;
  75. top:0;
  76. }
  77. #barraIOL{
  78. z-index:9999 !important;
  79. }
  80.  
  81.  
  82. </style>
  83.  
  84. <div class="intro-container" >
  85.  
  86.  
  87.  
  88. <div id="clickContainer" onclick="window.open('%%CLICK_URL_ESC%%%%DEST_URL%%','_blank')"></div>
  89. <div id="intro-pub-iframe-container">
  90.  
  91. <div id="div_apb_conf">
  92. <video id="video" controls loop autoplay muted poster="http://cdn.iol.pt/pub/nissan/pulsarsetembro/2016_09_Pulsar_800x600_video_pt.jpg">
  93. <source src="http://cdn.iol.pt/pub/nissan/pulsarsetembro/2016-09-pulsar-457x256-20-pt.mp4">
  94. <source src="http://cdn.iol.pt/pub/nissan/pulsarsetembro/2016-09-pulsar-457x256-20-pt.wmv" type="video/webm">
  95. Your browser does not support the <code>video</code> element. </video>
  96. </div>
  97.  
  98.  
  99. </div>
  100. <div id="closebutton" class="buttons" onclick="closeHandler();"></div>
  101. </div>
  102.  
  103.  
  104. <img src="%%VIEW_URL_UNESC%%" width="1" height="1" style="display:none">
  105.  
  106.  
  107. <script>
  108. setTimeout(function(){closeHandler()}, 32*1000);
  109.  
  110. function closeHandler(){
  111.  
  112. //var ifr =document.getElementById('intro-pub-iframe');
  113. var elems=document.getElementsByTagName('intro-container');
  114.  
  115. //ifr.style.display='none';
  116. if(typeof jQuery!= 'undefined'){
  117. jQuery('.intro-container').hide();
  118. }else{
  119. for(el in elems){
  120. elms[el].style.display='none';
  121. }
  122. }
  123. }
  124.  
  125. </script>
  126.  
  127.  
  128. <img src="https://bs.serving-sys.com/serving/adServer.bs?cn=display&c=19&mc=imp&pli=19000955&PluID=0&ord=%%CACHEBUSTER%%&rtu=-1" width="1" height="1" style="display:none"/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement