Advertisement
anatolionobre

320x50

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