Visualizzazione dei risultati da 1 a 10 su 10

Discussione: Trova l'errore...

  1. #1

    Trova l'errore...

    <script language="JavaScript">
    //<!--
    function getLongDateString()
    { //method defined on class Date.
    //Returns a date string of the form: Day DD Month,YYYY
    //(e.g. Sunday 27 September, 1998)
    monthNames = new Array("Gennaio","Febbraio","Marzo","Aprile","Maggi o","Giugno","Luglio","Agosto","Settembre","Ottobre ","Novembre","Dicembre");
    dayNames = new Array("Domenica","Lunedì","Martedì","Mercoledì","G iovedì","Venerdì","Sabato");
    dayOfWeek = this.getDay();
    day = dayNames[dayOfWeek];
    dateOfMonth = this.getDate();
    monthNo = this.getMonth();
    month = monthNames[monthNo];
    year = this.getYear();
    if (year < 2000)
    year = year + 1900;
    dateStr = day+" "+dateOfMonth+" "+month+", "+year;
    return dateStr;
    }
    //register the method in the class Date
    Date.prototype.getLongDateString=getLongDateString ;

    function DocDate()
    { //return the document modification date (excl.time)
    //as a string
    DateTimeStr = document.lastModified;
    secOffset = Date.parse(DateTimeStr);
    if (secOffset == 0 || secOffset == null) //Opera3.2
    dateStr = "Unknown";
    else
    {
    aDate = new Date();
    aDate.setTime(secOffset);
    //use method defined above
    datestr = aDate.getLongDateString();
    }
    return dateStr;
    }
    // -->
    </script>
    LyfeForms - Our Form in Business

  2. #2
    Utente di HTML.it L'avatar di willybit
    Registrato dal
    May 2001
    Messaggi
    4,367

    Re: Trova l'errore...

    Ciao LyfeForms,

    quale errore? A me non da nessun errore :master:

  3. #3


    a me da "20 luglio 2002"...





    LyfeForms - Our Form in Business

  4. #4
    Utente di HTML.it L'avatar di willybit
    Registrato dal
    May 2001
    Messaggi
    4,367
    a me da
    Venerdì 26 Settembre, 2003

    ma la data del tuo pc è giusta?

  5. #5
    si che è giusta... venerdì 26 settembre 2003 ore 10:30...

    che cacchio può essere???

    LyfeForms - Our Form in Business

  6. #6
    Utente di HTML.it L'avatar di willybit
    Registrato dal
    May 2001
    Messaggi
    4,367
    hehehe LyfeForms...
    non avevo neanche guardato il codice
    non è la data di sistema... è la data di ultima modifica del documento... :gren:

  7. #7
    ergo?
    LyfeForms - Our Form in Business

  8. #8
    :quote:

    allora?
    LyfeForms - Our Form in Business

  9. #9
    Utente di HTML.it L'avatar di willybit
    Registrato dal
    May 2001
    Messaggi
    4,367
    ma tu cosa vuoi la data di ultima modifica del documento o la data di sistema???
    Se vuoi la data di sistema sotituisci la riga
    DateTimeStr = document.lastModified;
    con
    DateTimeStr = new Date();


  10. #10
    GRAAAAAAAZIEEEEEEE!!!!!!

    :tongue:
    LyfeForms - Our Form in Business

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.