2

您知道将图片放在 Flash 上的任何解决方案吗?

必须在 IE6、IE7、Firefox for Windows、MacOSX、Linux 和 Safari 中运行。

4

3 回答 3

3

在我的脑海中,你可以试试这个:

图像在 swf 上的绝对定位 div

您必须将 swf 的参数“wmode”值设置为“透明”。

您也可以访问 www.actionscript.org 并在他们的论坛上进行搜索。

于 2008-10-02T15:14:19.250 回答
2

Funnily, I did something similar on SO, but over the arrow of a combo box... Reusing the technique:

<object width="550" height="450"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" 
    classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000">
<param name="movie" value="http://somesite.org/Tests/Spiffy.swf"/>
<param name="wmode" value="opaque"/>
<object type="application/x-shockwave-flash" width="550" height="450"
    data="http://somesite.org/Tests/Spiffy.swf">
<param name="wmode" value="opaque"/>
<img src="NoFlash.png" width="550" height="450" alt="Placeholder if no Flash" />
</object>
</object>
<div style="background-color: blue;
    min-width: 100px; width: 100px; min-height: 100px; height: 100px;
    position: relative; right: -250px; top: -250px;">&Nbsp;</div>

Found the wparam=opaque trick at wmode and z-index, search fueled by the remark of tehborkentooth above (which advised to use transparent, but it didn't work for me).

Of course, the style of the div should go in a class. The Nbsp is to make SO happy, it must be &nbsp; or real content, of course.

于 2008-10-02T16:29:37.010 回答
0

wmode=opaque 提供比“透明”更好的性能,结果几乎相同。

于 2010-04-15T12:24:37.510 回答