Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--
- 728x90
- Programado no LDB1
- Escolher Device Category = tablet
- -->
- <img src="%%VIEW_URL_UNESC%%http://s0.2mdn.net/dot.gif" width="1" height="1" style="display:none"/>
- <style>
- .sticky_footer_ad {
- position: fixed;
- display: block;
- z-index: 1000000;
- width: 100%;
- bottom: 0;
- left: 0;
- right: auto;
- text-align: center;
- height: auto;
- margin: 0 auto;
- clear: right;
- padding: 15px auto;
- background: #00FFFFFF;
- //border-top: 1px solid #666;
- }
- </style>
- <div class="sticky_footer_ad">
- <div style="text-align: center" id="sticky_footer_ad_container" >
- </div>
- </div>
- <script type="text/javascript">
- var bannerwidth= 728;
- var bannerheight = 90;
- var DFPscreenwidth = document.body.clientWidth;
- var host = String(window.location.host).replace('www.', '');
- if (host === "tvi24.iol.pt") {
- var new_bannerwidth = DFPscreenwidth * 0.7;
- var new_bannerheight = (bannerheight/bannerwidth) * new_bannerwidth;
- }else {
- var new_bannerwidth = bannerwidth;
- var new_bannerheight = bannerheight;
- }
- var DFPImage = {
- getEl: function (i){return document.getElementById(i)},
- Image: function(file, selector, w, h, click){
- if(!click){click = '%%CLICK_URL_UNESC%%%%DEST_URL%%'}
- DFPImage.getEl(selector).innerHTML='<a href="'+click+'" target="_blank"><img src="'+file+'" alt="" width="'+w+'" height="'+h+'" border="0" /></a>';
- },
- }
- DFPImage.Image('%%FILE:PNG1%%', 'sticky_footer_ad_container', new_bannerwidth, new_bannerheight)
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement