最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How do iframe busters for expandable ads work? - Stack Overflow

programmeradmin2浏览0评论

I have some questions about expandable ads and <iframe>s. I've created expandable ads which will displayed in <iframe>s. These ads will be served by known adservers like doubleclick, smartadserver, eyewonder, etc.

Thanks to some questions on Stack Overflow, I've discovered that they are some ways to break the ads out of the <iframe>s or even to dynamically resize the <iframe>s.

I've found <iframe> buster files from the main ad serving pany on the Internet, but I don't really get how they work.

I know that I have to create a HTML file which I'll be giving along with my ad tag to the publisher, and they'll need to put it under their domain. But I don't understand how that file works. How do I interact with it from my JS?

I have some questions about expandable ads and <iframe>s. I've created expandable ads which will displayed in <iframe>s. These ads will be served by known adservers like doubleclick, smartadserver, eyewonder, etc.

Thanks to some questions on Stack Overflow, I've discovered that they are some ways to break the ads out of the <iframe>s or even to dynamically resize the <iframe>s.

I've found <iframe> buster files from the main ad serving pany on the Internet, but I don't really get how they work.

I know that I have to create a HTML file which I'll be giving along with my ad tag to the publisher, and they'll need to put it under their domain. But I don't understand how that file works. How do I interact with it from my JS?

Share Improve this question edited May 23, 2017 at 11:52 CommunityBot 11 silver badge asked Apr 5, 2011 at 14:25 Steve D.Steve D. 391 silver badge8 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 4

The HTML file allows the ad vendor to load their own javascript on the domain of the hosting HTML file. Normally, its a 3 step process.

  1. Ad loads within an iframe on an ad server domain (ads.adserver.) versus the site domain (www.example.).
  2. Ad detects its in such an iframe and loads in yet another iframe to an HTML file on www.example., passing in parameters to the HTML file
  3. HTML file then in turns loads in the ad (first finding the iframe the ad was loading in to determine location) and places it on the parent website DOM structure, which it has access to thanks to the fact that it is the same domain.
发布评论

评论列表(0)

  1. 暂无评论