验证错误验证一个页面,有闪光灯对象

问题描述:

我用下面的文档类型中,有一个Flash对象的页面时,验证错误验证一个页面,有闪光灯对象

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> 

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

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" 

请问有人可以请教我与s有关如何在没有验证错误的页面中嵌入Flash对象[.swf]的信息?

+0

尝试使用swfobject的(http://code.google.com/p/swfobject/)嵌入,在zip文件中包含 – 2010-08-17 11:05:10

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

+0

@ rotora欢呼M8样品! – manraj82 2010-08-18 13:46:20

试试这个。它会工作。

<!--[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]-->