Aller au contenu

Intégrer un SWF et validation W3C


cirilo

Sujets conseillés

Salut,

Petite question toute bête : comment intégrer un fichier Flash dans une page et lui faire passer la validation W3C ?

J'utilise le code généré par Dreamweaver, mais lors de la validation il me retourne ces erreurs :

Line 73, column 21: there is no attribute "SRC"

<embed src="img/home02.swf" quality="high" pluginspage="http://www.mac

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.



Line 73, column 46: there is no attribute "QUALITY"

... <embed src="img/home02.swf" quality="high" pluginspage="http://www.macromedi



Line 73, column 65: there is no attribute "PLUGINSPAGE"

...me02.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashpl



Line 73, column 116: there is no attribute "TYPE"

...cromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="7



Line 73, column 154: there is no attribute "WIDTH"

...application/x-shockwave-flash" width="780" height="182"></embed>



Line 73, column 167: there is no attribute "HEIGHT"

...-shockwave-flash" width="780" height="182"></embed>



Line 73, column 172: element "EMBED" undefined

...kwave-flash" width="780" height="182"></embed>

Lien vers le commentaire
Partager sur d’autres sites

Salut,

Il faut utiliser la balise <object> :

http://forum.alsacreations.com/faq/#item27

Exemple :

<object type="application/x-shockwave-flash" data="fichierflash.swf" width="604" height="20">
<param name="movie" value="fichierflash.swf" />
<param name="wmode" value="transparent" />
<p>Image ou texte alternatif</p>
</object>

Bonne chance et bon week-end ;)

Modifié par Sibelius
Lien vers le commentaire
Partager sur d’autres sites

Veuillez vous connecter pour commenter

Vous pourrez laisser un commentaire après vous êtes connecté.



Connectez-vous maintenant
×
×
  • Créer...