Visualizzazione dei risultati da 1 a 4 su 4
  1. #1
    Utente di HTML.it
    Registrato dal
    Jan 2002
    Messaggi
    220

    contatore javascript e xhtml strict...

    Ciao a tutti,
    vorrei usare un contatore di visite in javascript ma così facendo perdo la validazione xhtml strict.

    <p class="firma">Questo sito &egrave; stato visitato <script type="text/javascript" language="javascript" src="stats/contatore/counter.js.php?id=pappa&amp;mode=text"></script> volte</p>

    Già gli ho fatto digerire il flash tramite l'accrocchio... vorrei sapere se c'è un accrocchio anche per questo problema...

    un grazie anticipato a chiunque provi ad aiutarmi...

  2. #2
    Moderatrice di Grafica, Cerco e offro lavoro L'avatar di Myaku
    Registrato dal
    Nov 2006
    Messaggi
    10,349
    prova sostituendo & con l'entità equivalente del charset che usi


  3. #3
    Utente di HTML.it
    Registrato dal
    Jan 2002
    Messaggi
    220
    si quello lo sapevo... ogni & è stata sostituita da &amp; come da specifiche...

    l'errore lo da sul attributo language e precisamente sulla prima virgoletta...

    Cmq incollo sotto il testo esatto...

    Line 73, Column 97: there is no attribute "language".
    …ript type="text/javascript" language=" javascript" src="stats/contatore/counte...

    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.

  4. #4
    language="javascript" è deprecato dalla versione 4 di HTML in quanto la tipologia di tag script viene riconosciuta dal type="text/javascript"
    FEDERIX.IT - [Pillola] GRAFICA DEI FORM

    ...ho ancora quella forza che ti serve, quando dici "Si comincia!"

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.