G
ghost-tr
Kodda nerede hata var javascript kısmındaki sorunu çözebilen var mı tek yapmak istediğim verilen tarihten ileri doğru saydırmak ve yıl ay gün saat dakika şeklinde çıktı almak yardımcı olursanız sevinirim. Teşekkürler 
HTML:
<html>
<head>
<script>
window.onload=function() {
// Month,Day,Year,Hour,Minute,Second
upTime('jan,01,2015,00:00:00'); // ****** Change this line!
};
function upTime(countTo) {
now = new Date();
countTo = new Date(countTo);
difference = (now-countTo);
days=Math.floor(difference/(60*60*1000*24)*1);
years = Math.floor(days / 365);
if (years > 1){ days = days - (years * 365)}
hours=Math.floor((difference%(60*60*1000*24))/(60*60*1000)*1);
month =Math.floor((months / 12);
if (months > 1){ days = days - (months * 12)}
mins=Math.floor(((difference%(60*60*1000*24))%(60*60*1000))/(60*1000)*1);
secs=Math.floor((((difference%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1);
document.getElementById('years').firstChild.nodeValue = years;
document.getElementById('months').firstChild.nodeValue = months;
document.getElementById('days').firstChild.nodeValue = days;
document.getElementById('hours').firstChild.nodeValue = hours;
document.getElementById('minutes').firstChild.nodeValue = mins;
document.getElementById('seconds').firstChild.nodeValue = secs;
clearTimeout(upTime.to);
upTime.to=setTimeout(function(){ upTime(countTo); },1000);
}
</script>
<style type="text/css">
//Buraya Css Kodları Gelecek
#countup p {
display: inline-block;
padding: 5px;
background: #FFA500;
margin: 0 0 20px;
}
</style>
</head>
<body>
It's been
<p id="years">00</p>
<p class="timeRefYears">years</p>
<p id="days">00</p>
<p class="timeRefMonths">months </p>
<p id="months">00 </p>
<p class="timeRefDays">days</p>
<p id="hours">00</p>
<p class="timeRefHours">hours</p>
<p id="minutes">00</p>
<p class="timeRefMinutes">minutes</p>
<p id="seconds">00</p>
<p class="timeRefSeconds">second</p>
</body>
</html>