Best Practice: Delivering Wallpaper Using OpenX

I am looking for a solution to deliver "wallpaper" using the "openx" ad server. Wallpaper consists of a leaderboard (728x90 px) and a vertical skyscraper. I can’t find any option in OpenX myself, so I assume that there must be some dirty methods to execute it.

Does anyone here have experience? I'm thinking of supplying only a leaderboard and attaching html to a banner that contains the layout of my skyscraper banner ...: - /

greg0ire> You can see an example of a “wallpaper” banner on this site (earlier you may encounter an overlay banner, make sure you have disabled ad blocking extensions): http://www.allocine.fr/ He’s been in Flash for several days, other days is just the css background-image property set on the body element. I would like to get the second option.

Thank!

+3
source share
3 answers

I got wallpapers to work through openx using this method.

First, I created a div below the shell of the contents of my site (using wordpress, the header.php file).

<div id="adbg" style=" margin: 0pt auto; height: 1000px; width: 100%; position: fixed; cursor:pointer;  ">

Then I created a div block with a wallpaper image in CSS and added it to OpenX as a TEXT BANNER

<div OnClick="location.href='#';" style="background: url('image.jpg') no-repeat scroll center top #026eb4; height: 100%; width: 100%;  margin: 0pt auto; cursor:pointer; "></div>

, openx div ADBG, .

.

, CSS div adbg CSS.

+1

, :

<div class="openx_<?php echo $_block->getBlockParameter('css_class');?> openx_background hidden">
 <?php echo str_replace('INSERT_RANDOM_NUMBER_HERE', rand(0, 9000), $_block->getBlockParameter('html', ESC_RAW));?>
  <?php echo javascript_tag()?>
    var checkImg = window.setInterval(function(){
      if (jQuery('.openx_background img').length)
      {
        jQuery("body").css('background', 'url("' + jQuery('.openx_background img').attr('src') + '") no-repeat');
        window.clearInterval(checkImg);
      }
    }, 1000);
    //give up 3 s later
    setTimeout(function(){
      if (jQuery('.openx_background img').length == 0)
      {
        clearInterval(checkImg);
      }
    }, 3001);
  <?php echo end_javascript_tag()?>
</div>

$_block->getBlockParameter('html', ESC_RAW) openx javascript.

0

, , openX , "Companion positioning". OpenX 4.6:

http://opensourceusers.com/sites/default/files/openx_reference_guide.pdf

, , , . prepend/append, , " " .

0

Source: https://habr.com/ru/post/1761082/


All Articles