通过Flash 9显示内容swf? [英] Showing content over a flash 9 swf?

查看:185
本文介绍了通过Flash 9显示内容swf?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个瑞士法郎,需要闪光灯9,我试图显示内容。为了方便这个,我把wmode设置为透明。问题是,这只适用于用户安装了Flash 10,我真的不想要Flash 10来查看我正在工作的网站上的内容。当我用闪光灯9拉起闪光灯内容的div时,swf会渗入或完全覆盖div。



如何防止这种情况发生要求?

我使用swfobject来嵌入swf和jquery-ui来显示div内容到flash内容。

编辑:

这个失败行为只能在Safari中注意到。

解决方案

我不确定这是否会帮助你本身。但我已经使用下面的方法来显示内容通过Flash。

前一段时间我曾经遇到过这个问题。我要向用户显示一个网站上注册条款和条件的弹出窗口。弹出窗口没问题,但在页面顶部有一个隐藏在对话框上部的Flash动画。经过测试和广泛使用的方法是把iframe放在你想要显示你的内容和绝对位置你的内容和IFrame的地方。例如,如果你想在Flash电影上面显示一个div,那么放置一个iframe如下:

 < iframe style = 位置:绝对的;顶部:250;左:150; >< / iframe中> 

然后将div正好放在iframe之上:

 < div style =position:absolute; top:250; left:150;>< / div> 

我在页面上使用jquery使用ui.dialog插件显示对话框。
在某些时候,我设计了一个简单的解决方案。

1)在电影元素上放置id属性来唯一标识电影对象。就像

 < object id =movie1>< / object> 



2)在显示对话框(或其他内容)之前调用一个javascript函数来隐藏电影。就像

  $(#movie1)。css(display,none); 



<3>现在显示对话框。就像

  $(#dialog)。dialog(open); 

4)关闭对话框后,再次显示电影。就像

  $(#dialog)。dialog(close); 
$(#movie1)。css(display,inline);


I have a swf that requires flash 9, and I'm trying to show content over it. To facilitate this, I've set wmode to transparent. The problem is, this ONLY works when the user has flash 10 installed, and I really don't want to require flash 10 to view the content on the site I'm working on. When I pull up a div over the flash content with flash 9, the swf bleeds into or completely overwrites the div.

How can I prevent this without making flash 10 a user requirement?

I'm using swfobject to embed the swf and jquery-ui to display divs over the flash content.

EDIT:

This failure behavior is only noted in Safari.

解决方案

I'm not sure if this will help you per se. But I've used following method to show content over flash.

I had faced this problem some time ago. I was to show user a popup for Terms and Conditions for registration on a site. Popup was coming okay, but There was a flash movie at top of the page which was hidding upper portion of the dialog. The tested and widely used method is to put an Iframe at place where you want to show your content and absolute position your content and IFrame. For example, if you want to show a div above a flash movie, then place a IFrame like follows:

    <iframe style="position:absolute;top:250;left:150;"></iframe>

Then position the div exactly above this iframe like:

    <div style="position:absolute;top:250;left:150;"></div>

I was using jquery on the page to show dialog using ui.dialog plugin. After fooling around sometime I devised following simple solution.

1) put id attribute on movie element to uniquely identify the movie object. Like,

<object id="movie1"></object>

2) before showing the dialog (or other content for that matter) call a javascript function to hide the movie. Like,

$("#movie1").css("display","none");

3) now show dialog. Like,

$("#dialog").dialog("open");

4) after closing the dialog, show the movie again. Like,

  $("#dialog").dialog("close");
  $("#movie1").css("display","inline"); 

这篇关于通过Flash 9显示内容swf?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆