0

我似乎无法让 clickTAG 在 Google Swiffy 中工作。这是我的代码:

<script>
  var stage = new swiffy.Stage(document.getElementById('swiffycontainer'),
      swiffyobject, {  });
  stage.start();
   stage.setFlashVars("clickTag=http://google.com");

4

2 回答 2

0

我真的想通了!“stage.start();” 行需要在“stage.setFlashVars("clickTag= http://google.com ");"之后

正确的代码如下所示:

<script>
  var stage = new swiffy.Stage(document.getElementById('swiffycontainer'),
      swiffyobject, {});
   stage.setFlashVars("clickTAG=http://www.google.com");  
  stage.start();
</script>
于 2015-08-26T19:28:45.007 回答
0

是的,就像VaIM所说的那样。

如果您有更多疑问,请查看:

https://support.google.com/dfp_premium/answer/6263155?hl=en

    <div id="swiffycontainer_%ecid!" style="width: %%WIDTH%%px; height: %%HEIGHT%%px"></div>
    <script>
      var stage = new swiffy.Stage(document.getElementById('swiffycontainer_%ecid!'),
          swiffyobject, {});
      stage.setFlashVars("clickTAG=%%CLICK_URL_ESC%%%%DEST_URL%%");           
      stage.start();
    </script>
  </body>

于 2015-09-17T19:47:16.330 回答