• Moderatore

    Inserire un animazione Flash con codice valido per il W3C

    Ho provato a validare una pagina e mi ha dato questi errori:

    Line 41 column 13: there is no attribute "SRC".
    <embed src="Immagini/ImmSponsor/banner%20europ.swf" quality="high" pluginspage
    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.

    Error Line 41 column 62: there is no attribute "QUALITY".
    ...mSponsor/banner%20europ.swf" quality="high" pluginspage="http://www.macromedi

    Error Line 41 column 81: there is no attribute "PLUGINSPAGE".
    ...urop.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashpl

    Error Line 41 column 132: there is no attribute "TYPE".
    ...cromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="4

    Error Line 41 column 170: there is no attribute "WIDTH".
    ...application/x-shockwave-flash" width="468" height="60"></embed>

    Error Line 41 column 183: there is no attribute "HEIGHT".
    ...-shockwave-flash" width="468" height="60"></embed>

    Error Line 41 column 187: element "EMBED" undefined.
    ...ckwave-flash" width="468" height="60"></embed>
    You have used the element named above in your document, but the document type you are using does not define an element of that name. 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 "Frameset" document type to get the "<frameset>" element),
    by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
    by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case.

    Premetto che l'errore si riferisce ad un banner in flash.
    Chi mi aiuta?

    Grazie mille


  • Super User

    Ho diviso questo topic dalla discussione precedente visto è un argomento che credo interessi a molti.

    Per avere un filmato flash inserito correttamente in una pagina, e con codice valido ci sono varie tecniche, che presentano diversi pregi/difetti.

    La più semplice è quella di usare questo codice:

    
    <object type="application/x-shockwave-flash" data="NomeFilmato.swf" width="LARGHEZZA" height="ALTEZZA" id="NomeFilmato">
    <param name="movie" value="NomeFilmato" />
    
    
    Per visualizzare correttamente il filmato devi installare Flash.</p>
    
    
    [Download Macromedia Flash Player](http://www.macromedia.com/go/getflashplayer/)</p>
    </object>
    
    

    Ovviamente è necessario personalizzare NomeFilmato, LARGHEZZA e ALTEZZA.

    Per maggiori informazioni, anche sulle altre tecniche possibili, ti consiglio leggere questo articolo:
    http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/


  • Community Manager

    riga75 è un casino.

    I tag embed e objet sono davvero di cattivo gusto 😄

    Scherzo, ma uno non è valido per il w3c e usando solo quello alcuni browser non vedono flash 🙂

    Ti consiglio un bell'articolo sui contenuti alternativi di flash
    http://www.btre.it/AlternativeFlash.htm


  • Moderatore

    Ok ci sono riuscito
    😛
    Grazie mille :vai:


  • User Attivo

    [quote=claudioweb;37372]

    
    <object type="application/x-shockwave-flash" data="NomeFilmato.swf" width="LARGHEZZA" height="ALTEZZA" id="NomeFilmato">
    <param name="movie" value="NomeFilmato" />
    
    
    Per visualizzare correttamente il filmato devi installare Flash.</p>
    
    
    [Download Macromedia Flash Player](http://www.macromedia.com/go/getflashplayer/)</p>
    </object>
    
    

    Funziona solo con IE, Firefox non ne vuole sapere cosa mi consigliate?
    :mmm:


  • User Attivo

    @francesco zeno said:

    Funziona solo con IE, Firefox non ne vuole sapere cosa mi consigliate?
    :mmm:
    Vedi i vecchi post in http://www.giorgiotave.it/forum/w3c-usabilita-accessibilita-qualita/27060-validare-codice-video.html

    oppure usa il metodo swfobject


  • User Attivo

    Grazie mille elvino!