Вход Регистрация
Файл: public_html/style/NG.php
Строк: 91
<?php
<script type='text/javascript'
//<![CDATA[ 
function fulltime () { 
var 
time=new Date(); 
var 
newYear=new Date("01,01,2016,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'><b><font color='red'>До нового 2016 года осталось:</b></font><br>
<
b><span id='RemainsFullDays'></span></bДн,<b><span id='RemainsFullHours'></span></bЧас,<b><span id='RemainsMinutes'></span></bМин,<b><span id='lastSec'></span></bcек.
<
script type="text/javascript">fulltime();</script>  
</
div
</
div>
?>
Онлайн: 2
Реклама