在html中插入Flash 代码是网页设计中经常碰到的,以下收集了几个相对简洁的flash插入代码
1.正常模式,类似div
<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='960' height='256'>
<param name='movie' value='/style/tzk.swf' />
<param name='quality' value='high' />
<param name='wmode' value='transparent' />
<embed src='/style/tzk.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='960' height='256'>
</embed></object>
2.自由定位:居中的网页可以以网页中间为原点,进行top上下,margin-left左右调整,相信会有满意的效果
<embed align=left height=151 src="style/star.swf" style="LEFT: 50%; POSITION: absolute; TOP: 50px;margin-left:-430px; width: 240px; height: 176px;" type=application/x-shockwave-flash width=397px ; quality="high" wmode="transparent"></embed>
3.只插入flash,最简代码
<embed src="swf url" style="width:950px; height:565px;" type="application/x-shockwave-flash" quality="high" wmode="transparent">