Flash下出现的Jquery脚本

发布于 2024-10-16 08:26:11 字数 2106 浏览 1 评论 0原文

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

运行Flash的javascrip是

 // JAVASCRIPT VARS
      // 缓存破坏器
      var cacheBuster = "?t=" + Date.parse(new Date());       

      // 舞台尺寸
      // 如果定义“100%”,则 swf 将具有浏览器尺寸
      var stageW = "330";//"100%";
      var stageH = "435";//"100%";


      // 属性
      var 属性 = {};
      属性.id = 'GalleryRight';
      属性.name = 属性.id;

      // 参数
      var 参数 = {};
      params.bgcolor = "#ffffff";


      /* 闪存变量 */
      var flashvars = {};             

      /// 如果注释/删除这些行,组件将采用定义的舞台尺寸 
      /// 上面的“JAVASCRIPT SECTIONS”部分或设置 xml 中定义的内容         
      flashvars.componentWidth = stageW;
      flashvars.componentHeight = stageH;

      /// 内容文件夹的路径(其中嵌套了 xml 文件、图像或视频)
      /// 如果你想使用绝对路径(如“http://domain.com/images/....”),则将其留空(“”)

      flashvars.pathToFiles = "淡出/";
      flashvars.xmlPath = "xml/fadeinout-right.xml";                      

      /** 嵌入 SWF**/
      swfobject.embedSWF("preview.swf"+cacheBuster, attribute.id, stageW, stageH, "9.0.124", >"js/expressInstall.swf", flashvars, params);
      if(swfmacmousewheel) swfmacmousewheel.registerObject(attributes.id);


  

我听说我需要放

参数名称=“wmode”值=“透明”

so.addParam("wmode", "不透明");

像这样的东西使它在我的 jquery 下。

我如何编辑它,以便我可以将 jquery 脚本悬停在 flash 上。

与我的 html 中的 flash 相关的东西是

<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 脚本框在这个 flash 上打开?

谢谢!!!非常感谢!

I have a jquery script box that opens up and it appears behind my flash.

The javascrip that runs the flash is

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

I heard i needed to put

param name="wmode" value="transparent"

or

so.addParam("wmode", "opaque");

something like this to make it under my jquery.

How do i edit that so i can have the jquery script hover over the flash.

The thing that ties to the flash in my html is

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

So how can i get it so the JQUERY script box to open over this flash?

Thanks!!! Greatly Appreciated!

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

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

发布评论

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

评论(1

噩梦成真你也成魔 2024-10-23 08:26:11

添加“params”的方法如下所示。我只是扩展了您已经拥有的内容(添加了新行)

// PARAMS
var params = {};
params.bgcolor = "#ffffff";
params.wmode = "opaque"

如果使 Flash 播放器不透明是答案,那么它应该可以工作。如果这不起作用,那么您可以尝试(除了不透明之外)将播放器的 z-index 设置为较低的数字,增加 jQuery 脚本框的 z-index(不确定那是什么)。

因此,在您的 html 中将“GalleryRight”div 标记修改为以下内容:

<div id="GalleryRight" style="z-index: 1;">

您可能必须以类似的方式将脚本框的 z-index 设置为更高。 z-index 属性指定元素的堆栈顺序。具有较高堆栈顺序的元素始终位于具有较低堆栈顺序的元素之前。但请注意,z-index 仅适用于定位元素。看起来您的脚本框已定位。但你的 Flash 播放器却不是。所以你可能需要定位它。在你的情况下,相对位置可能有效。

仅当确实需要时才执行 z-index 操作。

The way to add "params" is as shown below. I've simply extended what you already had (added a new line)

// PARAMS
var params = {};
params.bgcolor = "#ffffff";
params.wmode = "opaque"

If making the flash player opaque is the answer than it should work. If that doesn't work then you could try (in addition to opaque) to set the z-index of your player to a lower number of increase the z-index of you jQuery script box (not sure what that is).

So in your html modify your "GalleryRight" div tag to the following:

<div id="GalleryRight" style="z-index: 1;">

you may have to set the z-index of your script box in a similar fashion to a higher. The z-index property specifies the stack order of an element. An element with greater stack order is always in front of an element with a lower stack order. However, note that z-index only works on positioned elements. It looks like your script box is positioned. But your Flash player is not. So you may need to position it. In your case relative position may work.

Do the z-index thing only if you really have to.

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