[html] Note of embed swf (flv) in html

本文提供了正确的HTML嵌入Flash代码示例。通过<object>标签定义Flash对象,并使用<param>标签设置属性,如电影路径和质量等。同时给出了<embed>标签的用法,确保跨浏览器兼容性。

the correct codes of embed flash in html is as below:

 ExpandedBlockStart.gif代码

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" id="player" name="player" width="700" height="400">
  
<param name="movie" value="path_to_flash.swf" />
  
<param name="quality" value="high" />
  
<embed src="path_to_flash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="700" height="400"></embed>
</object>

 

 

if you miss some attributes of object, such as name, id, classid, then in IE, you may get this error after refreshing the page. (The first time to load the page does NOT warning these error!

Missing Objects
XXX line: XX 
code:0
URI: http://XXXXX 

 

 

Some one say that, if there is a classid, then in IE7, the flash can not display, but i didn't meet that error~~~


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值