(一)首先教大家最简单的插入Flash的代码,透明,无坐标控制:
代码如下:
<EMBED height=360 pluginspage=http://www.macromedia.com
/go/getflashplayer src=Flash地址 type=application/x-shockwave-
flash width=500 wmode="transparent" quality="high"></EMBED>
注意wmode="transparent"是控制Flash是否透明显示的,如果不想让它显示为透明的,直接把wmode="transparent"去掉即可。
(二)再教教大家加入绝对坐标的透明Flash,绝对坐标意味着不管你的窗口拉多大,那个Flash依然乖乖地在原地不动:
代码如下:
<EMBED style="LEFT: 250px; WIDTH: 550px; POSITION: absolute; TOP: 200px; HEIGHT: 1000px" align=right src=Flash
地址 width=500 height=2000 type=application/octet-
stream ;; quality="high" wmode="transparent">
(三)最后教教大家如何加入相
对坐标的透明Flash,注意下面代码的table部分,这主要是使用表格作为容器,把Flash“装”到表格里,这样不管浏览者把浏览器拉多
大,Flash永远和表格一起动。而且,表格可以设置背景图片,表格上面再放一个透明Flash与背景图片相配合,哇塞,效果好啊!~
代码如下:
<table border="0" cellPadding="0" cellSpacing="0" width=600 height=382 align=center background=图片地址>
<TD width=600 height=382><EMBED pluginspage=http://www.macromedia.com/go/getflashplayer
src=Flash地址 width="100%" height="100%"
type=application/x-shockwave-flash wmode="transparent"
quality="high"></EMBED></TD></td></table>
两只蝴蝶翩翩飞,是把一段代码放到了公告中,代码如下:
<EMBED style="LEFT: 0px; WIDTH: 750px; POSITION: absolute; TOP: -300px; HEIGHT: 1000px" align=right src=http://imgfree.21cn.com/free/flash/9.swf width=500 height=2000 type=application/octet-stream quality="high" wmode="transparent">
最后请记住,Flash地址后面必须空一格,否则无法显示。