mickeyclock
Cerca
STAFF
Ultimi argomenti attivi
Chi è online?
In totale ci sono 2 utenti online: 0 Registrati, 0 Nascosti e 2 Ospiti :: 1 Motore di ricercaNessuno
Il numero massimo di utenti online contemporaneamente è stato 40 il Ven Set 22, 2023 12:28 am
New Year Countdown
3 partecipanti
Pagina 1 di 1
New Year Countdown
takehito puoi mettere questo perfavore.
- Codice:
<p><embed src="http://www.satisfaction.com/new-years-countdown/newyearcountdown3.swf?x=http://www.satisfaction.com/" quality="high" wmode="transparent" width="430" height="300" name="countdown1" align="middle" allowScriptAccess="samedomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /><br><a href='http://www.satisfaction.com/new-years-countdown/'>New Year Countdown</a></p>
Re: New Year Countdown
molto bello
Saul Arcangeli-
Messaggi : 256
Compleanno : 26.10.82
Età : 41
Località : Tomodachi
Occupazione/Hobby : benriya
Umore : allegro
Saul Arcangeli-
Messaggi : 256
Compleanno : 26.10.82
Età : 41
Località : Tomodachi
Occupazione/Hobby : benriya
Umore : allegro
Re: New Year Countdown
Si va su Layout > Aggiungi un gadget > HTML/Javascript e si incolla questo codice
var bp_date_target = new Date("January 01, 2015 00:00:00");
var bp_date_now = new Date();
var messaggio_completo = "Auguro a tutti un Buon Anno";
if (bp_date_now >= bp_date_target) {
document.getElementById("contatore_capodanno").innerHTML = messaggio_completo;
} else {
bp_time_difference = Math.floor(((bp_date_target - bp_date_now).valueOf()) / 1000);
display_time_difference(bp_time_difference);
}
function display_time_difference(bp_time_difference) {
if (bp_time_difference <= 0) {
document.getElementById("contatore_capodanno").innerHTML = messaggio_completo;
return;
}
bp_count_down_message = "Mancano " + bp_format_seconds(bp_time_difference, 86400, 100000) + " Giorni " + bp_format_seconds(bp_time_difference, 3600, 24) + "Ore " + bp_format_seconds(bp_time_difference, 60, 60) + " Minuti e " + bp_format_seconds(bp_time_difference, 1, 60) + " Secondi" + " a Capodanno!";
document.getElementById("contatore_capodanno").innerHTML = bp_count_down_message;
setTimeout("display_time_difference(" + (bp_time_difference - 1) + ")", 1000);
}
function bp_format_seconds(secs, num1, num2) {
num = ((Math.floor(secs / num1)) % num2).toString();
if (num.length < 2) s = "0" + num;
return "" + num + "";
}
Saul Arcangeli-
Messaggi : 256
Compleanno : 26.10.82
Età : 41
Località : Tomodachi
Occupazione/Hobby : benriya
Umore : allegro
Pagina 1 di 1
Permessi in questa sezione del forum:
Non puoi rispondere agli argomenti in questo forum.
|
|
Gio Gen 25, 2018 7:28 pm Da Dean Winchester
» niao
Gio Gen 25, 2018 7:24 pm Da Dean Winchester
» banner forum
Mer Gen 24, 2018 1:18 pm Da Castiel
» regalo per Tina
Mer Gen 24, 2018 1:09 pm Da Castiel
» aiuto skin
Mer Gen 24, 2018 1:08 pm Da Castiel
» Ciambella senza burro latte e uova
Lun Gen 22, 2018 9:58 pm Da Takehito Saito
» Disney gif Halloween
Lun Gen 22, 2018 9:25 pm Da Tina Winchester
» dean
Lun Gen 22, 2018 7:43 pm Da Tina Winchester
» Tutte le eruzioni del Vesuvio dal 79 al 1944
Dom Gen 21, 2018 10:29 pm Da Takehito Saito