Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 12
  1. #1
    Utente di HTML.it
    Registrato dal
    Dec 2004
    Messaggi
    216

    Errore validazione W3C quando si inseriscono animazioni

    Salve.
    Ho sviluppato un sito e ogni pagina ha la validazione W3C per XHTML 1.0.
    Il problema sorge quando inserisco delle animazioni in flash perchè mi esce una validazione fallita del W3C, mostrandomi circa 8 errori per ogni animazione flash aggiunta ad 1 pagina.

    Esempi di errori sono:

    Line 61, Column 18: document type does not allow element "noscript" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.
    </script><noscript><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" ✉
    The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

    One possible cause for this message is that you have attempted to put a block-level element (such as "

    " or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
    -----------------------------

    Line 64, Column 21: there is no attribute "src".
    <embed src="Immagini/Animazione Banner con Logo.swf" quality="high" pl✉
    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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
    ------------------------------

    Line 64, Column 71: there is no attribute "quality".
    …mazione Banner con Logo.swf" quality="high" pluginspage="http://www.adobe.com✉
    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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
    -------------------------------

    Line 64, Column 90: there is no attribute "pluginspage".
    …Logo.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download✉
    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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
    -------------------------------

    Line 64, Column 181: there is no attribute "type".
    …P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="9✉
    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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
    ---------------------------------

    Line 64, Column 219: there is no attribute "width".
    …application/x-shockwave-flash" width="990" height="125"></embed>✉
    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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
    ---------------------------

    Line 64, Column 232: there is no attribute "height".
    …-shockwave-flash" width="990" height="125"></embed>✉
    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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
    ----------------------------

    Line 64, Column 237: element "embed" undefined.
    …kwave-flash" width="990" height="125"></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).

    --------------------------------

    In pratica la maggior parte degli errori riguardano gli attributi dell'animazione.
    Come posso risolvere?
    Grazie
    Max!

  2. #2

  3. #3
    Utente di HTML.it
    Registrato dal
    Dec 2004
    Messaggi
    216
    Ciao!
    Ottimo il link...solo che non capisco una cosa. Tra i vari metodi proposti il più semplice mi sembra essere quello di "Usare il commento condizionale". Questo fa uso di un "object" dentro un altro "object" e penso che non sia più consentito perchè appena modifico il mio codice esce un errore che dice appunto che non è consentito inserire un oggetto in un altro oggetto.
    Ora, non so se sbaglio io ma non penso. Il codice della mia animazione è il seguente:

    -----------------------------------------
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','990','heigh t','125','title','Banner','src','Immagini/Animazione Banner con Logo','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','Immagini/Animazione Banner con Logo' ); //end AC code
    </script><noscript><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="990" height="125" title="Banner">
    <param name="movie" value="Immagini/Animazione Banner con Logo.swf" />
    <param name="quality" value="high" />

    <embed src="Immagini/Animazione Banner con Logo.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="990" height="125"></embed>
    </object></noscript>

    ---------------------------------------------

    Ho provato ad inserire le righe di commento ( e ) ma l'errore esce lo stesso.
    A quel punto ho sostituito "embed src" (che è uno degli errori) e l'ho sostituito con "object data..." ma mi esce, in Dreamweaver, appunto l'errore che dice che non si può inserire un oggetto in un altro oggetto.

    Come potrei modificare il codice per inserire questi 2 commenti e quindi passare la convalida W3C?

    Grazie
    Max!

  4. #4
    Utente di HTML.it L'avatar di and80
    Registrato dal
    Mar 2003
    Messaggi
    15,182
    guarda l'html del mio sito flash, il codice è valido ed evita il problema dell'attivazione su IE

  5. #5
    Utente di HTML.it
    Registrato dal
    Dec 2004
    Messaggi
    216
    Originariamente inviato da and80
    guarda l'html del mio sito flash, il codice è valido ed evita il problema dell'attivazione su IE
    Ho visto il codice della pagina http://www.v2online.it/2005/ ....
    Allora...il tuo script dovrebbe essere questo:

    <script type="text/javascript">
    document.write(content);
    </script>
    <noscript id="js_enabled">
    <div id="container">
    <object id="filmato" type="application/x-shockwave-flash" data="cont2.swf">
    <param name="movie" value="cont2.swf" />
    </object>
    </div>
    </noscript>

    -----------------------------------------------

    ma mancano molte cose, come ad es. la dimensione (in larghezza e altezza) dell'animazione, il link al sito adobe per scaricarsi il player, ecc...
    Secondo te va lo stesso bene se non si mettono queste cose mancanti?
    Personalmente inserisco (e consiglio sempre ) un controllo per vedere se l'utente ha il flash player installato e, in caso negativo, faccio visualizzare il link per il download.

    Ciao
    Max!

  6. #6
    Utente di HTML.it
    Registrato dal
    Dec 2004
    Messaggi
    216
    Ciao!
    Ho studiato un po' il metodo Flash Satay e mi sa che uso quello perchè è molto semplice e posso rimodificare ancora le mie animazioni fla!

    Grazie dell'aiuto
    Ciao
    Max!

  7. #7
    Utente di HTML.it L'avatar di and80
    Registrato dal
    Mar 2003
    Messaggi
    15,182
    Originariamente inviato da max1850
    Ho visto il codice della pagina http://www.v2online.it/2005/ ....
    Allora...il tuo script dovrebbe essere questo:

    <script type="text/javascript">
    document.write(content);
    </script>
    <noscript id="js_enabled">
    <div id="container">
    <object id="filmato" type="application/x-shockwave-flash" data="cont2.swf">
    <param name="movie" value="cont2.swf" />
    </object>
    </div>
    </noscript>

    -----------------------------------------------

    ma mancano molte cose, come ad es. la dimensione (in larghezza e altezza) dell'animazione, il link al sito adobe per scaricarsi il player, ecc...
    Secondo te va lo stesso bene se non si mettono queste cose mancanti?
    Personalmente inserisco (e consiglio sempre ) un controllo per vedere se l'utente ha il flash player installato e, in caso negativo, faccio visualizzare il link per il download.

    Ciao
    Max!
    fidati che c'è tutto, solo che viene gestito attraverso gli strumenti corretti, css e javascript, linkati nell'head

  8. #8
    Utente di HTML.it L'avatar di and80
    Registrato dal
    Mar 2003
    Messaggi
    15,182
    Originariamente inviato da max1850
    Ciao!
    Ho studiato un po' il metodo Flash Satay e mi sa che uso quello perchè è molto semplice e posso rimodificare ancora le mie animazioni fla!

    Grazie dell'aiuto
    Ciao
    Max!
    Flash Satay è ok, ma non risolve il problema degli activex in IE

  9. #9
    Utente di HTML.it
    Registrato dal
    Dec 2004
    Messaggi
    216
    Originariamente inviato da and80
    Flash Satay è ok, ma non risolve il problema degli activex in IE
    Azz... allora non va bene. :rollo:
    Ho studiato il codice della pagina del tuo sito. Si è vero che alcune cose sono gestite nell' head ma non riesco a vedere il link per il download del flash player.
    Poi (correggimi se sbaglio) sembra che tutte queste righe servono per visualzizare 1 sola animazione perchè viene richiamato solo il file "cont2.swf". Questo forse conviene a chi fa un sito interamente in flash, ma io che ho normali pagine .asp con 3 o 4 animazioni per pagina devo riscrivere tutte queste righe per ogni animazione... mi sebra un po' troppo.

    E' così o sbaglio?

    Ciao
    Max!

  10. #10
    Utente bannato
    Registrato dal
    Sep 2002
    Messaggi
    148
    Originariamente inviato da and80
    fidati che c'è tutto, solo che viene gestito attraverso gli strumenti corretti, css e javascript, linkati nell'head
    Ciao! sto provando a usare il codice della tua pagina per fare un esperimento, però mi da qualche errore, cioè non mi trova i file com.js content.js e swobject.js (questo se non dico una scemata dovrebbe essere il javascript che genera Flash quando si pubblica? cioè AC_RunActiveContent.js ? )
    Potrei avere info per gli altri due javascript?
    Grazie!

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.