Инструменты пользователя

Инструменты сайта


newyear

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слеваПредыдущая версия
newyear [2024/09/01 17:24] noviknewyear [2025/01/10 19:34] (текущий) novik
Строка 1: Строка 1:
-<html> +<html> <script language='javascript' type='text/javascript'> function fulltime () { var time=new Date(); var newYear=new Date("jan,01,2026,00:00:00"); var totalRemains=(newYear.getTime()-time.getTime()); 
-<script language='javascript' type='text/javascript'> +
-function fulltime ()   { +
-var time=new Date(); +
-var newYear=new Date("jan,01,2025,00:00:00");    +
-var totalRemains=(newYear.getTime()-time.getTime()); +
- +
 if (totalRemains>1){ if (totalRemains>1){
-  + 
-var RemainsSec = (parseInt(totalRemains/1000)); +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}; 
-var RemainsFullDays=(parseInt(RemainsSec/(24*60*60))); + 
-var secInLastDay=RemainsSec-RemainsFullDays*24*3600; +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>"; setTimeout('fulltime()',10) } 
-var RemainsFullHours=(parseInt(secInLastDay/3600)); + 
-if (RemainsFullHours<10){RemainsFullHours="0"+RemainsFullHours}; +else{ document.getElementById("clock").innerHTML="C НОВЫМ ГОДОМ !!!"; } } </script> <style type='text/css'> #clou_xs {position:relative;width:200px;height:150px;padding:10px;} #clock {height:150px;text-align:center;font-size:25px;} #RemainsFullDays {position:absolute;top:50%;left:40%;font-size:25px;} #RemainsFullHours {position:absolute;bottom:1px;left:40px;font-size:15px;} #RemainsMinutes {position:absolute;bottom:1px;left:87px;font-size:15px;} #lastSec {position:absolute;bottom:1px;left:135px;font-size:15px;} #Rem {font-size:11px;font-weight:normal;} </style> <div id='clou_xs'> <div id='clock'> до нового года осталось: 
-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>";    +
-setTimeout('fulltime()',10)     +
-+
-  +
-else{ +
-document.getElementById("clock").innerHTML="C НОВЫМ ГОДОМ !!!"; +
-} +
-} +
-</script> +
-<style type='text/css'> +
-#clou_xs {position:relative;width:200px;height:150px;padding:10px;} +
-#clock {height:150px;text-align:center;font-size:25px;} +
-#RemainsFullDays {position:absolute;top:50%;left:40%;font-size:25px;} +
-#RemainsFullHours {position:absolute;bottom:1px;left:40px;font-size:15px;} +
-#RemainsMinutes {position:absolute;bottom:1px;left:87px;font-size:15px;} +
-#lastSec {position:absolute;bottom:1px;left:135px;font-size:15px;} +
-#Rem {font-size:11px;font-weight:normal;} +
-</style> +
-<div id='clou_xs'> +
-<div id='clock'> +
-до нового года осталось: +
- +
 <span id='RemainsFullDays'></span> <span id='RemainsFullDays'></span>
-    <span id='RemainsFullHours'></span> + 
-    <span id='RemainsMinutes'></span> +<code> 
-    <span id='lastSec'></span> +  <span id='RemainsFullHours'></span> 
-</div+  <span id='RemainsMinutes'></span> 
-</div> +  <span id='lastSec'></span> 
-<script language='javascript'>fulltime();</script> + 
-</html>+</code> 
 + 
 +</div> </div> <script language='javascript'>fulltime();</script> </html> 
 + 
newyear.1725211456.txt.gz · Последнее изменение: 2024/09/01 17:24 — novik