Visualizzazione dei risultati da 1 a 2 su 2

Discussione: data è ora

  1. #1

    data è ora

    come faccio a far camminare la data è l'ora in flash che script devo usare

  2. #2
    codice:
    Date.prototype.getDateAndTime = function() { 
       var giorni = ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"]; 
       var mesi = ["gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre"]; 
       var g = giorni[this.getDay()]; 
       var d = this.getDate(); 
       var mese = mesi[this.getMonth()]; 
       var a = this.getFullYear(); 
       var h = (h=this.getHours())<10 ? "0"+h : h; 
       var m = (m=this.getMinutes())<10 ? "0"+m : m; 
       var s = (s=this.getSeconds())<10 ? "0"+s : s; 
       return [g, d, mese, a].join(" ")+" - "+[h, m, s].join(" : "); 
    };
    //-------
    TextField.prototype.displayDateAndTime = function() { 
       clearInterval(this.dateID); 
       var d = new Date(); 
       this.text = d.getDateAndTime(); 
       this.dateID = setInterval(this, "displayDateAndTime", 1000); 
    };
    codice:
    nomeCampoTesto.displayDateAndTime();
    [Il mio sito V2]
    ___________________
    I.m.The.Magic.Man

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.