1

I have a google site. I want to embed an SWF file but I am not able to do it. I am able to display images and videos but not SWF files. Is there any solution to this problem?

4

2 回答 2

0

您可以创建自己的小工具http://example.com/gadget.xml

<?xml version="1.0" encoding="UTF-8"?>
<Module> 
  <ModulePrefs title="Demo" 
               author="You!" 
               author_email="you@example.com" 
               width="558"
               height="558">
    <Require feature="flash"/>
  </ModulePrefs>
  <Content type="html">
    <![CDATA[
      <div id="flash-container"
           style="text-align:center;height:558;border:0;padding:0;margin:0">
        Loading...
      </div>
      <script type="text/javascript">
        function showFlash() {
          gadgets.flash.embedFlash(
            '//example.com/demo.swf', 'flash-container', 6
          );
        }

        gadgets.util.registerOnLoadHandler(showFlash);
      </script>
    ]]>
  </Content>
</Module>

然后,您可以通过菜单通过 URL 嵌入小工具。

于 2013-10-09T21:53:03.067 回答
0

您可以embed在 HTML 编辑模式下使用选项卡

<embed src="//example.com/filename.swf"
  width="540" height="540" pluginspage="http://www.macromedia
  .com/go/getflashplayer"></embed>

保存后会自动生成一个包装swf文件的gadget。您使用 https 协议以确保健壮性,否则可能不会显示内容。

于 2012-09-19T08:15:10.530 回答