Sostituisci le parti in rosso nello script oiginale:
aggiungi nel documento (dove vuoi) un div con id down (<div id="down"></div>) dovrebbe andarecodice:if(dday==0&&dhour==0&&dmin==0&&dsec==1){ document.getElementById("down").innerHTML=current return } else document.getElementById("down").innerHTML="Only "+dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds left until "+before setTimeout("countdown(theyear,themonth,theday)",1000) }![]()

Rispondi quotando