 |
ОБЪЯВЛЕНИЯ,РЕКЛАМА..НОВОСТИ
<img src="http://s.foto.radikal.ru/0702/3fe7059941c4.gif"><div id='x1' style='padding:10px; border: 1px dashed red;'></div>
<a href="http://line.romanticcollection.ru" target="_blank"><img src="http://line.romanticcollection.ru/yar/1_31_454CFF50_REtoPprekrasnoePmestoPsuwestvuet_17.gif" border="0" /></a>
<script Language="JavaScript">
var timeStr, dateStr, ostStr, x;
function clock() {
now= new Date();
ex = new Date(2008,0,1,0,0,0);
// врем\я
hours= now.getHours();
minutes= now.getMinutes();
seconds= now.getSeconds();
timeStr= "" + hours;
timeStr+= ((minutes < 10) ? ":0" : ":") + minutes;
timeStr+= ((seconds < 10) ? ":0" : ":") + seconds;
// дата
date= now.getDate();
month= now.getMonth()+1;
year= now.getYear();
dateStr= "" + date;
dateStr+= ((month < 10) ? "/0" : "/") + month;
dateStr+= "/" + year;
ostStr= "";
x = (ex.getTime() - now.getTime())/1000;
ostStr = Math.floor(x/60/60) + ' ч. ';
ostStr = ostStr + Math.floor((x/60/60 - Math.floor(x/60/60))*60) + ' мин. ';
x = (((x/60/60 - Math.floor(x/60/60))*60) - Math.floor((x/60/60 - Math.floor(x/60/60))*60))*60;
ostStr = ostStr + Math.floor(x) + ' сек. ';
x = (x - Math.floor(x))*1000;
ostStr = ostStr + Math.floor(x) + ' мсек. ';
document.getElementById('x1').innerHTML = ' Текущее время: ' + timeStr + ' ' + ' До нового года осталось: ' + ostStr;
Timer= setTimeout("clock()",10);
}
clock();
</script>
|
5 |
10 |
06-10, 10:25
Lilooopic
|