来源:西安优业 发布时间:2011/8/4 浏览次数:1483次
在网页中实现flash的透明背景
<TABLE align=center background=/Article/UploadFiles/200508/20050801090158854.gif border=0 cellPadding=0 cellSpacing=0 height=180 width=350> <EMBED height=170 pluginspage=http://www.macromedia.com/go/getflashplayer src=http://www.webjx.com/tmswf/04.swf type=application/x-shockwave-flash width=330 wmode="transparent" quality="high"></EMBED> </TD></TR></TBODY></TABLE> 其中插入透明FLASH的代码为: <EMBED height=170 pluginspage=http://www.macromedia.com/go/getflashplayer src=http://www.webjx.com/tmswf/04.swf type=application/x-shockwave-flash width=330 wmode="transparent" quality="high"></EMBED>
二,第二种效果 把FLASH定位,这样图片就不用作背景,直接用图片的格式,图片的大小也可以随心所欲,效果要比前面一种好,就是要经过反复的调整才行,有些麻烦。 代码如下: <TABLE align=center background=/Article/UploadFiles/200508/20050801090158963.gif border=4 cellPadding=0 cellSpacing=10 height=400 width=450><TBODY><TR><TD> <P align=center><IMG border=0 height=180 src="http://www.webjx.com/61171333 ... h=350></P></FONT> <EMBED style="LEFT: 270px; WIDTH: 400px; POSITION: absolute; TOP: 12200px; HEIGHT: 300px" align=right src=http://www.webjx.com/tmswf/04.swf width=400 height=300 type=application/octet-stream wmode="transparent" quality="high" ;;></EMBED> </TD></TR></TBODY></TABLE>
<EMBED style="LEFT: 250px; WIDTH: 400px; POSITION: absolute; TOP: 12200px; HEIGHT: 300px" align=right src=http://www.cn898.net/bg/4.swf width=400 height=300 type=application/octet-stream wmode="transparent" quality="high" ;;></EMBED>
TOP: 12200px 是指FLASH与帖子上边之间的距离(也就是FLASH与IE的距离)。LEFT: 50px 是指FLASH与帖子左边的距离,WIDTH: 00px HEIGHT: 300px 是指FLASH定位的范围宽度和高度,后面的width=400 height=3000 就是指FLASH的宽和高了。 |
【大 中 小】【打印】【关闭】 |