日期:2013-11-09  浏览次数:20732 次

  将Flash插入网页的时候,我们有时候会需求将它设为通明,有时候我们需求在Flash的背面插入一些漂亮的图片,搭配出漂亮的效果……下面我们引见一些将Flash插入网页中的一些通明的设置技巧。

  一、Swf通明、无坐标控制

  首先教大家最简单的插入Flash的代码,通明,无坐标控制:
  留意wmode="transparent"是控制Flash能否通明显示的,如果不想让它显示为通明的,直接把wmode="transparent"去掉即可。

<EMBED height=60 pluginspage=http://www.macromedia.com/go/getflashplayer src=http://www.Aiyiweb.Com/flash/flash.swf type=application/x-shockwave-flash width=468 wmode="transparent" quality="high"></EMBED>

  二、Swf通明、绝对坐标控制

  再教教大家加入绝对坐标的通明Flash,绝对坐标意味着不管你的窗口拉多大,那个Flash仍然乖乖地在原地不动。


<EMBED style="LEFT: 60px; WIDTH: 468px; POSITION: absolute; TOP: 200px; HEIGHT: 1000px" align=right src=http://www.Aiyiweb.Com/flash/flash.swf width=568 height=60 type=application/octet-stream ;; quality="high" wmode="transparent">


  三、Swf通明、绝对坐标控制

  最后教教大家如何加入绝对坐标的通明Flash。
  留意下面代码的table部分,这次要是使用表格作为容器,把Flash“装”到表格里,这样不管浏览者把浏览器拉多大,Flash永远和表格一同动。而且,表格可以设置背景图片,表格上面再放一个通明Flash与背景图片相配合,效果很好。

<table border="0" cellPadding="0" cellSpacing="0" width=600 height=382 align=center
background=http://design.yesky.com/flash/backgroud.jpg>
<TD width=600 height=382><EMBED pluginspage=http://www.macromedia.com/go/getflashplayer
src=http://www.Aiyiweb.Com/flash/flash.swf width="100%" height="100%"
type=application/x-shockwave-flash wmode="transparent"
quality="high"></EMBED></TD></td></table>