验证具有Flash对象的页面时的验证错误

时间:2010-08-17 11:01:03

标签: html flash xhtml

我在具有flash对象的页面中使用以下doctype

html代码

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="379" height="180">
<param name="movie" value="Flash/header.swf" />
<param name="quality" value="high" />
<embed src="Flash/header.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="379" height="180"></embed>
</object>

当我尝试验证页面时,我显示以下错误,

there is no attribute "src"
there is no attribute "quality"
there is no attribute "pluginspage"
there is no attribute "type" 
there is no attribute "width"  
there is no attribute "height" 
there is no attribute "type" 

有人可以告诉我一些关于如何在没有验证错误的页面中嵌入flash对象[.swf]的信息吗?

2 个答案:

答案 0 :(得分:2)

试试这个。它会起作用。

<!--[if !IE]> -->
  <object type="application/x-shockwave-flash" data="Flash/header.swf" width="379" height="180">
<!-- <![endif]-->
<!--[if IE]>
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="379" height="180">
    <param name="movie" value="Flash/header.swf" />
<!-->
  </object>
<!-- <![endif]-->

答案 1 :(得分:0)

embed是Netscape发明的旧元素,从未标准化。搜索谷歌有几种有效的方法来嵌入Flash:http://www.google.de/search?q=embed+flash+valid