Файл: index.js
Строк: 37
<?php
<div class="menu"><script type="text/javascript">
timeend= new Date();
timeend= new Date(timeend.getYear()>1900?(timeend.getYear()+1):(timeend.getYear()+1901),0,1);
function time() {
today = new Date();
today = Math.floor((timeend-today)/1000);
tsec=today%60; today=Math.floor(today/60); if(tsec<10)tsec='0'+tsec;
tmin=today%60; today=Math.floor(today/60); if(tmin<10)tmin='0'+tmin;
thour=today%24; today=Math.floor(today/24);
timestr=today +" Kun "+ thour+" Soat. "+tmin+" Daqiqa. "+tsec+" Soniya.";
document.getElementById('t').innerHTML=timestr;
window.setTimeout("time()",1000);
}
</script>
<body onload="time()">
<font color="DarkGreen">» </font><font color="red">Yangi yilga </font> <span id="t" style="font-size:12px"></span> <font color="red">qoldi...!</font>
?>