怎样在网页插入透明FLASH
----云水.淡墨
一、表格中插入背景图片,然后加入透明FLASH素材。
说明:把FLASH放在表格里面,图片作为表格背景,对齐方式可选择居中等等。
<div align="center"> <table style="WIDTH: 594px; HEIGHT: 461px" height="461" width="594" align="center" background="http://bbsimg.qq.com/2005/09/17/000/752.jpg" border="1"> <tbody> <tr> <td width="588"> <embed pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://style.blogcn.com/blogcnpage/sysflash/t2/19/a.swf" width="492" height="66" type="application/x-shockwave-flash" wmode="transparent" quality="high" vspace="20" hspace="20"></td></tr></tbody></table></div>
二、表格中放入层,层中插入透明FLASH素材。
用层把FLASH定位,效果要比前面一种好,可以灵活调整精确位置。
<table style="WIDTH: 610px; HEIGHT: 471px" height="471" cellspacing="10" cellpadding="0" width="610" align="center" background="http://bbsimg.qq.com/2005/09/17/000/752.jpg" border="4" table=""> <tbody> <tr><embed style="LEFT: 630px; WIDTH: 400px; POSITION: absolute; TOP: 1201px; HEIGHT: 300px" align="3" src="http://style.blogcn.com/blogcnpage/sysflash/t2/19/a.swf" width="400" height="300" type="application/octet-stream" wmode="transparent" quality="high"></embed> <td><br/> <p align="center"> </p><font size="+0"></font><br/></embed> <br/></td></tr></tbody></table>
TOP: ****px 是指FLASH与帖子上边之间的距离。 LEFT: ***px 是指FLASH与帖子左边之间的距离。 前面的WIDTH: ***px HEIGHT: ***px 是指层的宽度和高度 后面的width=*** height=*** 是指FLASH的宽度和高度
插入透明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" 是否透明,如不透明,直接把wmode="transparent"删掉。
用层插入位置坐标的透明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">
用<DIV>在图片上插入透明Flash
<DIV> <P align=center><IMG border=0 height=180 src="图片URL地址" width=350></P> <EMBED style="LEFT: 270px; WIDTH: 400px; POSITION: absolute; TOP: 1200px; HEIGHT: 300px" align=right src="透明Flash的地址" width=400 height=300 type=application/octet-stream wmode="transparent" quality="high" ;;></EMBED>
</DIV>
插入不透明的flash,现在基本不用了。
<IFRAME id=sgnframe border=0 marginWidth=0 frameSpacing=0 marginHeight=0 src="Flash的地址" frameBorder=0 scrolling=no width=395 height=338 ></IFRAME>
原创教程 转载需经云水论坛同意.
|