说明:把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>
原创教程 转载需经云水论坛同意.
以下为转载:
Dreamweaver升级到8.0.2后,插入Flash时的代码会有所改变,这是Macromedia为解决IE中的Flash会出现控件激活框而作的更新。要为Flash添加透明等参数有两种方法。
用Dreamweaver的属性面板为插入的Flash添加透明属性,此方法简单实用。
使插入的Flash处于选择状态,点击属性面板中的“参数”,在随即弹出的参数表中添加一行,参数名为“wmode”,值为“transparent”。使用此方法时注意,若页面中有人工输入的Flash ID,此ID将被删除,请在添加完参数后重新输入ID。
在html代码中为插入的Flash添加透明属性。
同样是添加值为“transparent”的“wmode”参数。
在云水可以学到很多计算机知识的
可是
为什么弯弯看了脑袋就好大了呢
|
担心脑袋大就像我看齐 就不学!~``
墨该又汗了 呵呵!````
画图?
弯弯也会
欢迎光临 云水论坛 (http://www.yunshui.net/) | Powered by Discuz! X2.5 |