首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在drupal..flash中包含闪存未出现

无法在drupal..flash中包含闪存未出现
EN

Stack Overflow用户
提问于 2011-10-19 18:42:37
回答 1查看 280关注 0票数 0

我已经下载了一个flash组件“淡入淡出幻灯片”.and在里面包含了我的图片。我不知道如何在drupal中包含它,它的index.html页面是

代码语言:javascript
复制
<html xmlns="http`enter code here`://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>XML Banner Rotator</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    </head>
<body>

        <script type="text/javascript" src="js/swfobject.js"></script>

        <script type="text/javascript">

            // JAVASCRIPT VARS
            // cache buster
            var cacheBuster = "?t=" + Date.parse(new Date());
            // stage dimensions     
            var stageW = "560";//"100%";
            var stageH = "374";//"100%";


            // ATTRIBUTES
            var attributes = {};
            attributes.id = 'FlabellComponent';
            attributes.name = 'FlabellComponent';

            // PARAMS
            var params = {};
            params.bgcolor = "#ffffff";
            params.menu = "false";
            params.scale = 'noScale';
            params.wmode = "opaque";
            params.allowfullscreen = "true";
            params.allowScriptAccess = "always";            


            /* FLASH VARS */
            var flashvars = {};

            /// if commented / delete these lines, the component will take the stage dimensions defined 
            /// above in "JAVASCRIPT SECTIONS" section or those defined in the settings xml
            flashvars.componentWidth = stageW;
            flashvars.componentHeight = stageH;

            /// path to the content folder(where the xml files, images or video are nested)
            /// if you want to use absolute paths(like "http://domain.com/images/....") then leave it empty("")         
            flashvars.pathToFiles = "banner/";

            // path to content XML
            flashvars.xmlPath = "xml/banner.xml";


            /** EMBED THE SWF**/
            swfobject.embedSWF("preview.swf"+cacheBuster, attributes.id, stageW, stageH, "9.0.124", "js/expressInstall.swf", flashvars, params, attributes);

        </script>

        <table width="100%" height="100%" cellpadding="0" cellspacing="0">
            <td align="center">

                <!-- this div will be overwritten by SWF object -->     
                <div id="FlabellComponent">
                    <p>In order to view this object you need Flash Player 9+ support!</p>
                    <a href="http://www.adobe.com/go/getflashplayer">
                        <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player"/>
                    </a>
                </div>

            </td>
        </table>        

    </body>

</html> 

我已经下载了一个flash组件“淡入淡出幻灯片”,.and包含了mu图片。我不知道如何在drupal中包含它,有什么想法吗?

我尝试使用下面的code..but闪存图像不显示来嵌入它的preview.swf。

代码语言:javascript
复制
<div id="swfhead">
<object height="205" width="950">
<param value="preview.swf" name="movie">
<embed height="205" width="950" src="preview.swf">
</object>
</div>
EN

回答 1

Stack Overflow用户

发布于 2011-10-19 20:44:38

你不能像你那样嵌入swf。请参考drupal.org中的主题概念

简介:http://drupal.org/user/1313260

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/7820040

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档