首页插入透明FLASH

风清扬斈 6年前 (2013-12-01) 信息科技 2766 0

代码如下:

代码一、

<EMBED style="LEFT: 0px; POSITION: absolute; TOP: 20px; absolute: " align=right src=地址 width=800 height=600 type=application/x-shockwave-flash wmode="transparent" quality="high" ;;>

代码二、

FLASH透明代码
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash
/swflash.cab#version=6,0,29,0" width="610" height="206"
style="position: absolute; left: -3; top: 51">
<param name="_cx" value="11113">
<param name="_cy" value="4763">
<param name="FlashVars" value>
<param name="Movie" value="guang.swf">
<param name="Src" value="guang.swf">
<param name="WMode" value="Transparent">
<param name="Play" value="0">
<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><embed
src="images/flashobj/szbest.swf" wmode="transparent"
quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer";;
type="application/x-shockwave-flash" width="420"
height="180"></object>

代码三、

在插入flash的代码中插入<param name="wmode" value="transparent">即可实现flash背景透明
如:
< td width="375" height="88" rowspan="2" valign="bottom" background="images/tu.jpg"><!--设置单元格背景为图片背景(当然要放一个好看的了) -->
< object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="373" height="166" align="middle">
<param name="movie" value="images/move.swf">
<param name="quality" value="high">
<param name="wmode" value="transparent"> <!--这里代码可使Flash背景透明 -->
<embed src="images/move.swf" width="373" height="166" align="middle" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>
< /td>
以上代码适合dreamweaver插入的flash代码,如果是在frontpage插入flash代码设置如下:
< embed src="fish1.swf" quality=high width=50 height=50 wmode=transparent type=(i)application/x-shockwave-flash(i)></embed>
< !-- wmode=transparent这一段是设置背景透明-->



直接设置flash参数为wmode 值:transparent

 

兼容Firefox ,IE的flash透明和flash置底代码

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockw
ave/cabs/flash/swflash.cab#version=6,0,29,0" width="300" height="190">
<param name="movie" value="flash.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed src="flash.swf" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashp
layer" type="application/x-shockwave-flash" width="300" height="190"></embed>
</object>
如果想使flash透明,就需要加上红色部分代码(<param name="wmode" value="transparent" />)。在IE 和TT 中,都很美好,可在火狐下却不管用。这时就必需要多加上一段代码,蓝色部分代码(wmode="transparent")方能使flash透明。


二、设置flash置底,加个代码:<param name="wmode" value="opaque" />但是只加这个代码,IE可行,在FF下,失效。要想在FF下起作用,还要用在object 里加个 wmode="opaque" ,实例代码如下:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="560" height="210">
<param name="movie" value="http://www.konnech.cn/2/images/banner.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque">
<embed src="http://www.konnech.cn/2/images/banner.swf" wmode="opaque" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="560" height="210"></embed>
</object>

"

相关推荐

  • 网友评论

    • (*)

    最新评论