Advertisement
anatolionobre

728x90

May 19th, 2014
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!--
  2. 728x90
  3. Programado no LDB1
  4. Escolher Device Category = tablet
  5. -->
  6.  
  7. <img src="%%VIEW_URL_UNESC%%http://s0.2mdn.net/dot.gif" width="1" height="1" style="display:none"/>
  8.  
  9.  
  10.  
  11. <style>
  12.  
  13. .sticky_footer_ad {
  14. position: fixed;
  15. display: block;
  16. z-index: 1000000;
  17.  
  18. width: 100%;
  19. bottom: 0;
  20. left: 0;
  21. right: auto;
  22. text-align: center;
  23. height: auto;
  24. margin: 0 auto;
  25. clear: right;
  26. padding: 15px auto;
  27. background: #00FFFFFF;
  28. //border-top: 1px solid #666;
  29.  
  30. }
  31.  
  32.  
  33.  
  34. </style>
  35.  
  36.  
  37.  
  38. <div class="sticky_footer_ad">
  39. <div style="text-align: center" id="sticky_footer_ad_container" >
  40.  
  41.  
  42. </div>
  43.  
  44.  
  45. </div>
  46.  
  47. <script type="text/javascript">
  48.  
  49.         var bannerwidth= 728;
  50.         var bannerheight = 90;
  51.  
  52.         var DFPscreenwidth = document.body.clientWidth;
  53.        
  54.         var host = String(window.location.host).replace('www.', '');
  55.        
  56.         if (host === "tvi24.iol.pt") {
  57.                 var new_bannerwidth = DFPscreenwidth * 0.7;
  58.                 var new_bannerheight  = (bannerheight/bannerwidth) * new_bannerwidth;
  59.         }else {
  60.        
  61.                 var new_bannerwidth = bannerwidth;
  62.                 var new_bannerheight  = bannerheight;
  63.        
  64.         }
  65.        
  66.        
  67.  
  68.  
  69.        
  70.         var DFPImage = {
  71.         getEl: function (i){return document.getElementById(i)},
  72.         Image: function(file, selector, w, h, click){
  73.                                 if(!click){click = '%%CLICK_URL_UNESC%%%%DEST_URL%%'}
  74.                                 DFPImage.getEl(selector).innerHTML='<a href="'+click+'" target="_blank"><img src="'+file+'" alt="" width="'+w+'" height="'+h+'" border="0" /></a>';
  75.                        
  76.                         },
  77.                        
  78.                        
  79.         }              
  80.  
  81.         DFPImage.Image('%%FILE:PNG1%%', 'sticky_footer_ad_container', new_bannerwidth, new_bannerheight)
  82.  
  83.        
  84.        
  85.  
  86. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement