post

Flash遮住弹出层完美解决方案

在做网站的这段日子里,总碰到Flash挡住弹出层的问题,IE下的问题还好解决。就是在FF,chrome等非IE下,一直没有找到合适的解决方案。今天,终于让我给解决掉了。哦也!

下面贴代码了:  (HTML4的flash代码太冗余了,希望HTML5早点流行起来。)

<object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,24,0"
                    width="950" height="250" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
                    <param name="FlashVars" value=""/>
                    <param name="Movie" value="images/Banner950x250.swf"/>
                    <param name="WMode" value="Transparent"/>
                    <param name="Play" value="-1"/>
                    <param name="Loop" value="-1"/>
                    <param name="Quality" value="High"/>
                    <param name="SAlign" value=""/>
                    <param name="Menu" value="-1"/>
                    <param name="Base" value=""/>
                    <param name="AllowScriptAccess" value="always"/>
                    <param name="Scale" value="ShowAll"/>
                    <param name="DeviceFont" value="0"/>
                    <param name="EmbedMovie" value="0"/>
                    <param name="BGColor" value=""/>
                    <param name="SWRemote" value=""/>
                    <param name="MovieData" value=""/>
                    <param name="SeamlessTabbing" value="1"/>
                    <embed wmode="transparent" src="images/Banner950x250.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"
                        type="application/x-shockwave-flash" width="950" height="250"></embed>
 </object>

眼见为实,再贴几个实际的例子:Chrome 6.0.447

Chrome下Flash在弹出DIV下面

Firefox  4 BETA

Firefox下Flash在弹出DIV下面

Safari 5.0

Safari下Flash在弹出DIV下面

IE 8

IE8下Flash在弹出DIV的下面

Speak Your Mind

*

· 1,358 次浏览