2010-08-17 7 views
0

J'utilise le doctype suivant dans une page qui a un objet flash,erreurs de validation lors de la validation d'une page qui a un objet flash

code 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> 

Lorsque je tente de valider la page Im affichée avec les erreurs suivantes,

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" 

Pourrait quelqu'un s'il vous plaît me conseiller avec s Quelques informations sur la façon d'incorporer un objet flash [.swf] dans une page sans erreurs de validation?

+0

essayer avec intégration swfobject (http://code.google.com/p/swfobject/), des échantillons inclus dans le fichier zip –

Répondre

2

Essayez ceci. Ça va marcher.

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