有没有办法在我的分机上投放广告? (Chrome 扩展、微软插件)

发布于 2025-01-17 02:09:18 字数 1329 浏览 3 评论 0原文

我做了一个受欢迎的扩展,但我想在那里放广告。 下面是我的代码。 不用担心文档。看下面的代码。 https://docs.google.com/document/d/1TQTJi7j0seWcfyC8w5DyNn3Ov9dMvcPFGzt7OcADKDw/edit?usp=sharing

当我将代码放入 Html 测试器中时,该代码可以正常工作。它显示广告。但是当我将其作为扩展进行测试时,广告不会出现,但游戏会出现。有理由吗?

我有办法修复它吗? 谢谢

<html>
    <head>

    <body>
      
<script type="text/javascript">
    atOptions = {
        'key' : '158047a6e4d1f2e9957e2ce46ec501a4',
        'format' : 'iframe',
        'height' : 90,
        'width' : 728,
        'params' : {}
    };
    document.write('<scr' + 'ipt type="text/javascript" src="http' + (location.protocol === 'https:' ? 's' : '') + '://extractplayed.com/158047a6e4d1f2e9957e2ce46ec501a4/invoke.js"></scr' + 'ipt>');
</script>
  



<link rel="stylesheet" href="styles.css">
   
               <form action="https://stackoverflow.com/" method="get" class="inline" target="myiframe">
         <button type="submit">testing</button>
        </form>
        <iframe name="myiframe" height="545" width="750"></iframe>
        
               
    </body>
</html>

I have made a popular extension but I am trying to put advertisements on there.
Below is my code.
Dont worry about the document. Look at the code below.
https://docs.google.com/document/d/1TQTJi7j0seWcfyC8w5DyNn3Ov9dMvcPFGzt7OcADKDw/edit?usp=sharing

The code works when I put it in a Html Tester. It shows the advertisement. But when I test it as an extension the advertisement does not appear but the game does. Is there a reason?

Is there a way I can fix it?
Thanks

<html>
    <head>

    <body>
      
<script type="text/javascript">
    atOptions = {
        'key' : '158047a6e4d1f2e9957e2ce46ec501a4',
        'format' : 'iframe',
        'height' : 90,
        'width' : 728,
        'params' : {}
    };
    document.write('<scr' + 'ipt type="text/javascript" src="http' + (location.protocol === 'https:' ? 's' : '') + '://extractplayed.com/158047a6e4d1f2e9957e2ce46ec501a4/invoke.js"></scr' + 'ipt>');
</script>
  



<link rel="stylesheet" href="styles.css">
   
               <form action="https://stackoverflow.com/" method="get" class="inline" target="myiframe">
         <button type="submit">testing</button>
        </form>
        <iframe name="myiframe" height="545" width="750"></iframe>
        
               
    </body>
</html>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文