在 google 网站中嵌入 swf

发布于 2024-08-27 18:10:30 字数 71 浏览 12 评论 0原文

我有一个谷歌网站。我想嵌入 SWF 文件,但无法做到。我可以显示图像和视频,但不能显示 SWF 文件。这个问题有什么解决办法吗?

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?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

番薯 2024-09-03 18:10:30

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

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

保存后,会自动生成一个包裹swf文件的小工具。您使用 https 协议来保证稳健性,否则确保内容可能不会显示。

You can use embed tab in in HTML edit mode

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

After saving, it will automatically generated a gadget wrapping the swf file. You https protocol for robustness, otherwise insure content may not show up.

可是我不能没有你 2024-09-03 18:10:30

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

<?xml version="1.0" encoding="UTF-8"?>
<Module> 
  <ModulePrefs title="Demo" 
               author="You!" 
               author_email="[email protected]" 
               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)嵌入该小工具。

You could create your own gadget http://example.com/gadget.xml:

<?xml version="1.0" encoding="UTF-8"?>
<Module> 
  <ModulePrefs title="Demo" 
               author="You!" 
               author_email="[email protected]" 
               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>

The gadget you can then embed via the menu, by URL.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文