时尚酷族
标题:
网页中插入透明Flash的方法
[打印本页]
作者:
CooL.泪猪
时间:
2012-7-18 00:06
标题:
网页中插入透明Flash的方法
将Flash作品插入网页的时候,我们有时候会需要将它设为透明,有时候我们需要在Flash的背面插入一些漂亮的图片,搭配出漂亮的效果……下面我们介绍一些将Flash插入网页中的一些透明的设置技巧。
) `$ u' W3 a0 V) Q3 h/ a- H( r! @
一、Swf透明、无坐标控制
# P; M/ g& f% ~8 _
首先教大家最简单的插入Flash的代码,透明,无坐标控制:
3 F4 K/ Q5 W k
注意wmode="transparent"是控制Flash是否透明显示的,如果不想让它显示为透明的,直接把wmode="transparent"去掉即可。
y) c9 [" ?0 B+ D( r3 S2 X- C" O
<EMBED height=60 pluginspage=http://www.macromedia.com/go/getflashplayer src=透明flash图片地址.swf type=application/x-shockwave-flash width=468 wmode="transparent" quality="high"></EMBED>
$ B! w& U! ?$ h2 k& [+ C
二、Swf透明、绝对坐标控制
- C' V' r! t2 L& @
再教教大家加入绝对坐标的透明Flash,绝对坐标意味着不管你的窗口拉多大,那个Flash依然乖乖地在原地不动。
; f9 W5 w+ e5 `' x' Q3 {
<EMBED style="LEFT: 60px; WIDTH: 468px; POSITION: absolute; TOP: 200px; HEIGHT: 1000px" align=right src=透明flash图片地址.swf width=568 height=60 type=application/octet-stream ;; quality="high" wmode="transparent">
: Y8 V9 U: _0 G; j4 C' z; j( f
三、Swf透明、相对坐标控制
9 V6 y& l! c' P( W) Q" v, a1 R% _% b' O
最后教教大家如何加入相对坐标的透明Flash。
( ^7 x" l* L4 f3 n
注意下面代码的table部分,这主要是使用表格作为容器,把Flash“装”到表格里,这样不管浏览者把浏览器拉多大,Flash永远和表格一起动。而且,表格可以设置背景图片,表格上面再放一个透明Flash与背景图片相配合,效果很好。
" p0 }1 ^: `6 ?+ C" I
<table border="0" cellPadding="0" cellSpacing="0" width=600 height=382 align=center
% |- |1 @0 ^" B7 o5 I
background=http://www.webjx.com/flash/backgroud.jpg>
" l4 W$ ~0 |7 n( P. Q) J* e; t
<TD width=600 height=382><EMBED pluginspage=http://www.macromedia.com/go/getflashplayer
! O" W2 C- X3 ` O6 }
src=透明flash图片地址.swf width="100%" height="100%"
0 l3 E; b5 d- |/ H
type=application/x-shockwave-flash wmode="transparent"
+ V' w( Q- G, e3 ^* p
quality="high"></EMBED></TD></td></table>
欢迎光临 时尚酷族 (http://www.coqq.net/)
Powered by Discuz! X3.2