Fancybox +爆管广告
我们使用 Fancybox 来投放本质上是插页式广告。页面加载,然后 Fancybox 加载它,并显示我们的广告内容。对于我们发布的大多数广告内容,这种方法都有效(手动编码的链接/图像、DoubleClick 内容等)。但来自 Burst Media 的广告似乎让人头疼不已。
一旦 Fancybox 加载,突发广告就会接管,并通过 document.write()
发送到页面。 (据我所知)这会转储其他所有内容,并仅显示广告内容。
更奇怪的是,相同的广告代码在我们页面上的内嵌广告中可以正常工作。
我唯一能想到的是,由于 Burst 内容缺少 iframe
,因此会对页面造成严重破坏;但因为它在其他地方有效,我变得沮丧和困惑。
有什么建议吗?
编辑:广告内容来自管理员,员工在其中粘贴适当的 HTML。它是通过 PHP 直接添加到页面的。
We're using Fancybox to throw up essentially an interstitial ad. The page loads, then Fancybox loads over it, and displays our ad content. For most ad content we've put up, this has worked (hand-coded links/images, DoubleClick content, etc). But ads from Burst Media seem to cause no end of headache.
As soon as Fancybox loads, the Burst ad takes over, and does it's document.write()
to the page. This (as far as I can tell) dumps everything else, and displays only the ad content.
To make matters stranger, the same ad code works correctly in inline placed ads on our page.
The only thing I can think is that because the Burst content is missing an iframe
, it's causing havoc on the page; but because it works in other places, I'm becoming frustrated and confused.
Any suggestions?
EDIT: Ad content comes from an admin where employees paste in the appropriate HTML. It is added to the page via PHP directly.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于那些将来可能需要它的人,您确实需要一个 iframe,正如 @Pointy 建议的那样;这是 iframe 部分的模板:
请注意,本质上,
iframe
的唯一区别是src
属性具有ifrm=2
值包含在查询字符串中。其他一切都应该是相同的。For those that may need it in the future, you do need an iframe, as @Pointy suggested; here's the template for the iframe portion:
Please note that essentially, the only difference for the
iframe
is that thesrc
attribute has anifrm=2
value included in the querystring. Everything else should be the same.