Visualizzazione dei risultati da 1 a 8 su 8
  1. #1

    Il W3C e i contatori (dell'acqua)

    Dopo aver cercato invano un contatore di accessi con codice conforme al w3c, mi sono arresa. Per quanto sia eticamente possibile, si puo' modificare un qualsiasi codice? Ho usato XHTML e DIV per la costruzione della pagina.

    Posto il codice del contatore:
    <script language=\"javascript\">
    var data, p;
    var agt=navigator.userAgent.toLowerCase();
    var img=escape(\"./buttons/b3.png\");
    document.cookie=\'__support_check=1\';
    p=\'http\';
    if((location.href.substr(0,6)==\'https:\')||(locat ion.href.substr(0,6)==\'HTTPS:\')) {p=\'https\';} data = \'&agt=\' + escape(agt) + \'&img=\' + img + \'&r=\' + escape(document.referrer) + \'&aN=\' + escape(navigator.appName) + \'&lg=\' + escape(navigator.systemLanguage) + \'&OS=\' + escape(navigator.platform) + \'&aV=\' + escape(navigator.appVersion);
    if(navigator.appVersion.substring(0,1)>\'3\') {data = data + \'&cd=\' + screen.colorDepth + \'&p=\' + escape(screen.width+ \'x\'+screen.height) + \'&je=\' + navigator.javaEnabled();};
    </script><a href=\"http://www.emule-anleitung.de/Google-Earth.html\"><img src=\"http://www.webcounter.ws/counterblank.gif\" alt=\"Google Earth\" border=0 hspace=0 vspace=0></a><script language=\"javascript\">
    document.write(\'<a target=\"_blank\" href=\"http://www.webcounter.ws/template.php?a=talitha\">\');
    document.write(\'<img alt=\"webcounter free counter\" border=0 hspace=0 \'+\'vspace=0 src=\"http://www.webcounter.ws/counter.php?a=talitha\' + data + \'\"></a>\');
    </script><noscript>
    <img alt=\"web counter webcounter\" border=0 hspace=0 vspace=0 src=\"http://www.webcounter.ws/counter.php?a=talitha&img=./buttons/b3.png\"></noscript>


    :master:
    http://www.talitha.it | http://www.nwp.it

  2. #2
    usa google analytics oppure clicky. il primo è ottimo. nel secondo, per la versione free, puoi monitorare soltanto 3 siti. lo provo da qualche giorno e per adesso sono soddisfato. ciao

  3. #3
    Originariamente inviato da gabip87
    usa google analytics oppure clicky. il primo è ottimo. nel secondo, per la versione free, puoi monitorare soltanto 3 siti. lo provo da qualche giorno e per adesso sono soddisfato. ciao
    Infatti. Mi sono appena iscritta a GA. Ma mi da cmq degli errori. Suggerimenti?

    This page is not Valid XHTML 1.0 Transitional!

    Below are the results of checking this document for XML well-formedness and validity.

    1. Error Line 55 column 78: document type does not allow element "script" here; assuming missing "body" start-tag.

    ...s.com/urchin.js" type="text/javascript">


    2. Error Line 61 column 5: document type does not allow element "body" here.

    <body>

    The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

    One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).


    3. Error Line 66 column 6: end tag for "body" omitted, but OMITTAG NO was specified.

    </html>

    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".


    4. Info Line 55 column 0: start tag was here.

    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
    http://www.talitha.it | http://www.nwp.it

  4. #4
    io non ho avuto nessun problema e lavoro in strict. passa il link alla pagina.

  5. #5
    Originariamente inviato da gabip87
    io non ho avuto nessun problema e lavoro in strict. passa il link alla pagina.
    http://www.talitha.it/
    http://www.talitha.it | http://www.nwp.it

  6. #6
    prendi questo codice

    codice:
    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
    </script>
    <script type="text/javascript">
    _uacct = "UA-2061923-1";
    urchinTracker();
    </script>
    e mettilo

    codice:
    <body>
    <div class="contenitore"><div class="contenuto"></div>Talitha Webdesign Solutions &copy; 2007 - Tutti i marchi appartengono ai rispettivi proprietari
    
    Sito in costruzione - Tornate a visitarci oppure mandate una e-mail a: info@talitha.it
    
    
    </p>
    </div>
    
    QUI!   
    
    </body>
    ps: sposta il CSS all'interno dell'head in un file esterno. non usare formattazioni inline (usa sempre i CSS) e indenta il codice per facilitare eventuali correzioni o aggiornamenti.

  7. #7
    Originariamente inviato da gabip87
    prendi questo codice

    codice:
    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
    </script>
    <script type="text/javascript">
    _uacct = "UA-2061923-1";
    urchinTracker();
    </script>
    e mettilo

    codice:
    <body>
    <div class="contenitore"><div class="contenuto"></div>Talitha Webdesign Solutions &copy; 2007 - Tutti i marchi appartengono ai rispettivi proprietari
    
    Sito in costruzione - Tornate a visitarci oppure mandate una e-mail a: info@talitha.it
    
    
    </p>
    </div>
    
    QUI!   
    
    </body>
    provo subito...gia' che ci sei (scusa se approfitto) daresti un'occhiata a qst thread? http://forum.html.it/forum/showthrea...readid=1134411
    http://www.talitha.it | http://www.nwp.it

  8. #8
    Originariamente inviato da mary201067
    provo subito...gia' che ci sei (scusa se approfitto) daresti un'occhiata a qst thread? http://forum.html.it/forum/showthrea...readid=1134411
    Letto ora il p.s. ...eheh l'ansia.. e' valido.
    http://www.talitha.it | http://www.nwp.it

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.