首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >出现在Flash下的Jquery脚本

出现在Flash下的Jquery脚本
EN

Stack Overflow用户
提问于 2011-02-06 05:44:12
回答 1查看 548关注 0票数 0

我有一个打开的jquery脚本框,它出现在我的闪存后面。

运行闪存的javascrip是

// JAVASCRIPT VARS // cache buster var cacheBuster = "?t=" + Date.parse(new Date()); // stage dimensions // if you define '100%' then the swf will have the browser dimensions var stageW = "330";//"100%"; var stageH = "435";//"100%"; // ATTRIBUTES var attributes = {}; attributes.id = 'GalleryRight'; attributes.name = attributes.id; // PARAMS var params = {}; params.bgcolor = "#ffffff"; /\* 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 = "fadeinout/"; flashvars.xmlPath = "xml/fadeinout-right.xml"; /\*\* EMBED THE SWF\*\*/ swfobject.embedSWF("preview.swf"+cacheBuster, attributes.id, stageW, stageH, "9.0.124", >"js/expressInstall.swf", flashvars, params); if(swfmacmousewheel) swfmacmousewheel.registerObject(attributes.id); </script>

我听说我需要

param name="wmode“value=透明

so.addParam(“w模式”,“不透明”);

在我的jquery下,会出现这样的情况。

我如何编辑它,以便让jquery脚本悬停在闪存上。

与我html中的闪存相关的东西是

代码语言:javascript
复制
<table width="330px" height="435px" cellpadding="0" cellspacing="0">
        <td align="center">

            <div id="GalleryRight">
                <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>

那么,如何才能使JQUERY脚本框在这个闪存上打开呢?

谢谢!非常感谢!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-02-06 05:47:24

添加"params“的方式如下所示。我只是简单地扩展了您已经拥有的内容(添加了一个新行)

代码语言:javascript
复制
// PARAMS
var params = {};
params.bgcolor = "#ffffff";
params.wmode = "opaque"

如果让flash播放机不透明是答案,它应该是可行的。如果这不起作用,那么您可以尝试(除了不透明)将您的播放器的z索引设置为较低数量的jQuery脚本框的z索引(不确定这是什么)。

因此,在html中,将"GalleryRight“div标记修改为:

代码语言:javascript
复制
<div id="GalleryRight" style="z-index: 1;">

您可能必须以类似的方式将脚本框的z索引设置为更高的值。z-index属性指定元素的堆栈顺序。堆栈顺序更大的元素总是在堆栈顺序较低的元素前面。但是,请注意,z索引只适用于定位的元素.看起来你的脚本框已经定位好了。但你的闪存播放器不是。所以你可能需要定位它。在你的情况下,相对位置可能有效。

只有当你真的需要的时候才做z索引。

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

https://stackoverflow.com/questions/4911835

复制
相关文章

相似问题

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