显示flash对象上方的图像 [英] Display image above flash object

查看:98
本文介绍了显示flash对象上方的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我面对一个棘手的情况在这里...这是问题...
我有一个闪光对象,我想显示一个图像_这些都是我尝试的技巧... 。
1.使用z-index(不使用)播放2.将wmode参数设置为transparent / opaque(再次不使用)
3.使用javascript并仅在页面之后显示图片(仍然没有使用)
我尝试了Google搜索,但没有找到解决方案..( - 预先谢谢!

更新代码我使用

I am facing a tricky situation here...this is the problem...
I have a flash object over which i want to display an image
These are the tricks that i tried...
1.Playing with z-index(no use)
2.Setting the wmode parameter to transparent/opaque(again no use)
3.Using javascript and displaying image only after the page is loaded(still no use)
I tried googling but found no solutions..:(
Thanks in advance

Update-the code i am using

        <div style="position:absolute; top:0px; z-index:-2000;">
            <object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="176" height="146">
                <param name="movie" value="sample.swf" />
                <param name="wmode" value="transparent" />
                <param name="quality" value="High" />
                <param name="menu" value="false" />
                <embed src="sample.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" menu="false" width="176" height="146" />
            </object>
        </div>
        <div style="position:absolute; top:0px; z-index:2000;">
            <img src="Logo.gif" alt="" />
        </div>

也尝试使用 value =opaque


已完成所有可能的建议... pls help ..

also tried with value="opaque"
have done all possible suggestions...pls help..

推荐答案

strong>
我知道这是wmode的一个或另一个,我选错了一个。不应该回答一个患有睡眠剥夺的问题。我现在检查它,wmode设置为透明你想要的。

Update: I knew it was either one or the other regarding wmode, I picked the wrong one. Shouldn't have answered a question suffering from sleep deprivation. I've checked it now and wmode set to transparent is what you want. It lets you put HTML elements above Flash objects.

其次,嵌入Flash标准友好的方式,并使用 swfobject

Secondly, embed Flash the standards friendly way, and use swfobject.

首先尝试在Flash上​​分层一个鲜艳的div。

Try layering a brightly coloured div over your Flash first for test. Also, perhaps move the image code above the Flash and see how that goes.

最后,所有需要的代码都可以工作如上面K Prime所述,在嵌入代码中将wmode设置为透明

Finally, all that's needed to get your code to work, as mentioned above by K Prime, is setting wmode to transparent in your embed tag as well.

<div style="position:absolute; top:0px; z-index:-2000;">
    <object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="176" height="146">
        <param name="movie" value="/Images/WordOfLife.swf" />
        <param name="wmode" value="transparent" />
        <param name="quality" value="High" />
        <param name="menu" value="false" />
        <embed src="/Images/WordOfLife.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" wmode="transparent" menu="false" width="176" height="146" />
    </object>   
</div>

<div style="position:absolute; top:0px; z-index:2000;">
    <img src="Logo.gif" alt="" />
</div>

这篇关于显示flash对象上方的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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