不能在drupal中包含闪光灯。不会出现闪光

时间:2011-10-19 10:42:37

标签: php html flash drupal

我已经下载了一个闪存组件“Fade In Fade Out Slideshow”,并在其中包含了我的图像。我不知道如何将它包含在drupal中 它的index.html页面是

<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> 

我已经下载了一个闪存组件“Fade In Fade Out Slideshow”。并在其中包含mu图像。我不知道如何将其包含在drupal中 任何想法????

我尝试使用以下代码嵌入其preview.swf ..但不显示flash图像。

<div id="swfhead">
<object height="205" width="950">
<param value="preview.swf" name="movie">
<embed height="205" width="950" src="preview.swf">
</object>
</div>

1 个答案:

答案 0 :(得分:-1)

你不能像你一样嵌入瑞士法郎。请参阅drupal.org中的主题概念

生物:http://drupal.org/user/1313260