How can we keep OpenX from blocking page load?

前端 未结 5 1124
伪装坚强ぢ
伪装坚强ぢ 2021-02-06 03:13

We\'re using OpenX to serve ads on a number of sites. If the OpenX server has problems, however, it blocks page loads on these sites. I\'d rather have the sites fail gracefully,

5条回答
  •  太阳男子
    2021-02-06 03:41

    Following @Rafa excellent answer, i'm using this code to invoke OpenX banners after the page loads. I'm using jquery as well and had to add a new replace call for the "document.write" that flash banners use, and replacing it with "$('#"+ oDIV.id +"').append" instead. I'm using a custom "my_openx()" call, to replace "OA_show()". My banners area called by the zone_id and are wrapped inside a div, like this:

    It's working :)

    
    

提交回复
热议问题