Adobe Edge动画不会在whmcs上显示

时间:2014-12-05 18:12:52

标签: php jquery adobe whmcs adobe-edge

我有一个边缘动画。我正在使用whmcs标题模板。

<!--Adobe Edge Runtime-->
      <meta http-equiv="X-UA-Compatible" content="IE=Edge">
      <script type="text/javascript" charset="utf-8" src="templates/{$template}/edge.5.0.1.min.js"></script>

      <style>
          .edgeLoad-navalti { visibility:hidden; }
      </style>
      <script>
          AdobeEdge.loadComposition("Untitled-1", "navalti",{
              scaleToFit: "none",
              centerStage: "vertical",
              minW: "1024px",
              maxW: "undefined",
              width: "1920px",
              height: "250px"
          }, {"dom":{}}, {"dom":{}});
      </script>
<!--Adobe Edge Runtime End-->

编辑动画区<div>

<div id="Stage" class="navalti">                 
    <div id="Stage_Rectangle" class="edgeLoad-navalti"></div>
</div>

但是当在Chrome中打开网站时,我收到此错误:

1 个答案:

答案 0 :(得分:0)

您不能在whmcs模板中使用{或}。 尝试

          <meta http-equiv="X-UA-Compatible" content="IE=Edge">
      <script type="text/javascript" charset="utf-8" src="templates/{$template}/edge.5.0.1.min.js"></script>
{literal} 
      <style>
          .edgeLoad-navalti { visibility:hidden; }
      </style>
      <script>
          AdobeEdge.loadComposition("Untitled-1", "navalti",{
              scaleToFit: "none",
              centerStage: "vertical",
              minW: "1024px",
              maxW: "undefined",
              width: "1920px",
              height: "250px"
          }, {"dom":{}}, {"dom":{}});
      </script>
{/literal}
<!--Adobe Edge Runtime End-->