{% else-1 %}
Счётчик на js сколько осталось до лета!

                        
<script type='text/javascript'> 
//<![CDATA[
function fulltime () {
var time=new Date();
var newYear=new Date("06,01,2014,00:00:00");
var totalRemains=(newYear.getTime()-time.getTime());
if (totalRemains>1){
var RemainsSec = (parseInt(totalRemains/1000));
var RemainsFullDays=(parseInt(RemainsSec/(24*60*60)));
var secInLastDay=RemainsSec-RemainsFullDays*24*3600;
var RemainsFullHours=(parseInt(secInLastDay/3600));
if (RemainsFullHours<10){RemainsFullHours="0"+RemainsFullHours};
var secInLastHour=secInLastDay-RemainsFullHours*3600;
var RemainsMinutes=(parseInt(secInLastHour/60));
if (RemainsMinutes<10){RemainsMinutes="0"+RemainsMinutes};
var lastSec=secInLastHour-RemainsMinutes*60;
if (lastSec<10){lastSec="0"+lastSec};
document.getElementById("RemainsFullDays").innerHTML=RemainsFullDays+"<span id='Rem'></span>";
document.getElementById("RemainsFullHours").innerHTML=RemainsFullHours+"<span id='Rem'></span>";
document.getElementById("RemainsMinutes").innerHTML=RemainsMinutes+"<span id='Rem'></span>";
document.getElementById("lastSec").innerHTML=lastSec+"<span id='Rem'></span>"; <!-- highslide start -->
setTimeout('fulltime()',10)
}
else{
document.getElementById("clock").innerHTML="Наступило лето! :)";
}
}
//]]>
</script>

</style>
<div id='clockall'>
<div id='clou_xs'>
<div class='nav1'><img src='/style/icons/fav.gif' alt='o'/> <b><font color='orange'>До начала лета 2o14 года осталось:</b></font><br>
<font color='#1E90FF'><b><span id='RemainsFullDays'></span></b> Дн,</font> <font color='#4169E1'><b><span id='RemainsFullHours'></span></b> Час,</font> <font color='#0000FF'><b><span id='RemainsMinutes'></span></b> Мин,</font> <font color='#0000CD'><b><span id='lastSec'></span></b> c.</font>
<script type="text/javascript">fulltime();</script>
</div>
0 38 0
0

Нет фото
• 15 июн 2014, 14:04


Mc Dir, Уже и считать не нужно

0

Нет фото
Mc Dir * 0.05
• 31 май 2014, 14:48


Да че тут считать?* Несколько часов осталось*