Сообщение # 1 | 17:01:33
Код
<!--#timer block2-->
<script type="text/javascript">function get_timer_762(string_was_762,string_sec_762) {var date_new_was_762 = new Date(string_was_762); var date_new_sec_762 = string_sec_762; var date_762 = new Date();var razn_762,left_762,left_n_762,vraz_762,ost_762;razn_762 = date_762 - date_new_was_762;left_762 = date_new_sec_762 - razn_762;if(left_762>0){left_n_762 = left_762;} else {if(Math.abs(left_762)>date_new_sec_762){vraz_762 = (Math.abs(left_762))/date_new_sec_762;vraz_762 = vraz_762.toString().split(".");left_n_762 = Math.abs(left_762) - (vraz_762[0])*date_new_sec_762;left_n_762 = date_new_sec_762 - left_n_762;} else {left_n_762 = date_new_sec_762 - Math.abs(left_762);}}ost_762 = left_n_762;var day_762 = parseInt(ost_762/(60*60*1000*24));if(day_762 < 10) {day_762 = "0" + day_762;}day_762 = day_762.toString();var hour_762 = parseInt(ost_762/(60*60*1000))%24;if(hour_762 < 10) {hour_762 = "0" + hour_762;}hour_762 = hour_762.toString();var min_762 = parseInt(ost_762/(1000*60))%60;if(min_762 < 10) {min_762 = "0" + min_762;}min_762 = min_762.toString();var sec_762 = parseInt(ost_762/1000)%60;if(sec_762 < 10) {sec_762 = "0" + sec_762;}sec_762 = sec_762.toString(); timethis_762 = day_762 + " : " + hour_762 + " : " + min_762 + " : " + sec_762;$(".timerhello_762 p.result .result-day").text(day_762);$(".timerhello_762 p.result .result-hour").text(hour_762);$(".timerhello_762 p.result .result-minute").text(min_762);$(".timerhello_762 p.result .result-second").text(sec_762);}function getfrominputs_762(){string_was_762 = "Fri Nov 13 2015 16:17:19 GMT+0200 (Фінляндія (зима))"; string_sec_762 = "3715200900"; get_timer_762(string_was_762,string_sec_762);setInterval(function(){get_timer_762(string_was_762,string_sec_762);},1000);}$(document).ready(function(){ getfrominputs_762();});</script>
<style type="text/css">/*второй*/.second-my{width: 260px;padding: 0px;text-align: center;}.second-my .result span.items{padding: 10px 7px;display: inline-block;margin: 0 4px 0 -5px;font-size: 20px;-webkit-border-radius:4px;-moz-border-radius: 4px; border-radius: 4px;-webkit-box-shadow: 0px 1px 1px 0px rgb(178, 176, 176);-moz-box-shadow: 0px 1px 1px 0px rgb(178, 176, 176);box-shadow: 0px 1px 1px 0px rgb(178, 176, 176);background: rgb(125,126,125); /* Old browsers */background: -moz-linear-gradient(top, rgba(125,126,125,1) 0%, rgba(14,14,14,1) 100%); /* FF3.6+ */background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(125,126,125,1)), color-stop(100%,rgba(14,14,14,1))); /* Chrome,Safari4+ */background: -webkit-linear-gradient(top, rgba(125,126,125,1) 0%,rgba(14,14,14,1) 100%); /* Chrome10+,Safari5.1+ */background: -o-linear-gradient(top, rgba(125,126,125,1) 0%,rgba(14,14,14,1) 100%); /* Opera 11.10+ */background: -ms-linear-gradient(top, rgba(125,126,125,1) 0%,rgba(14,14,14,1) 100%); /* IE10+ */ background: linear-gradient(to bottom, rgba(125,126,125,1) 0%,rgba(14,14,14,1) 100%); /* W3C */filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#7d7e7d", endColorstr="#0e0e0e",GradientType=0 ); /* IE6-9 */color: white; font-family: "Russo One", sans-serif;min-width: 30px;letter-spacing: 2px;}.second-my .result span.dot{ margin: 0 -1px;position: relative;left: -4px;font-family: "Russo One", sans-serif;font-size: 17px;}.second-my .result {float: right;}.second-my .titles{position: relative;height: 0;right: -23px;width: 300px;}.second-my .titles span{font-size: 10px;position: relative;top: 12px;}.second-my .titles span.mm{right: 18px;}.second-my .titles span.hh{right: 40px; }.second-my .titles span.dd{right: 62px;}.second-my p.titloftimer{ font-size: 18px;margin: 0 auto;left: 10px; position: relative; font-family: "Russo One", sans-serif;}/*ресет*/.timerhello span{margin: 0;padding: 0;border: 0;font-size: 100%;font: inherit;vertical-align: baseline; }.timerhello p{font-size: 100%;font: inherit;color: #191919;font-family: Verdana, sans-serif; font-size: 13px;margin: 0 0 10px 0;line-height: 17px;}.clearf{visibility: hidden;display: block;font-size: 0;content: " ";clear: both;height: 0; }p.hellotimercopy{display:none!important;} </style>
<div class="second-my timerhello timerhello_762">
<div class="second-my-content">
<link href="http://fonts.googleapis.com/css?family=Russo+One&subset=latin,cyrillic" rel="stylesheet" type="text/css">
<p class="titloftimer">До зимніх канікул</p>
<br>
<p class="result">
<span class="result-day items">42</span>
<span class="dot">дн. </span>
<span class="result-hour items">23</span>
<span class="dot">:</span>
<span class="result-minute items">59</span>
<span class="dot">:</span>
<span class="result-second items">56</span>
</p>
<div class="clearf"></div>
</div>
</div>
<!--#timer block2-->
<!--#timer block1-->
<p align="center">
<script type="text/javascript">function get_timer_693(string_was_693,string_sec_693) {var date_new_was_693 = new Date(string_was_693); var date_new_sec_693 = string_sec_693; var date_693 = new Date();var razn_693,left_693,left_n_693,vraz_693,ost_693;razn_693 = date_693 - date_new_was_693;left_693 = date_new_sec_693 - razn_693;if(left_693>0){left_n_693 = left_693;} else {if(Math.abs(left_693)>date_new_sec_693){vraz_693 = (Math.abs(left_693))/date_new_sec_693;vraz_693 = vraz_693.toString().split(".");left_n_693 = Math.abs(left_693) - (vraz_693[0])*date_new_sec_693;left_n_693 = date_new_sec_693 - left_n_693;} else {left_n_693 = date_new_sec_693 - Math.abs(left_693);}}ost_693 = left_n_693;var day_693 = parseInt(ost_693/(60*60*1000*24));if(day_693 < 10) {day_693 = "0" + day_693;}day_693 = day_693.toString();var hour_693 = parseInt(ost_693/(60*60*1000))%24;if(hour_693 < 10) {hour_693 = "0" + hour_693;}hour_693 = hour_693.toString();var min_693 = parseInt(ost_693/(1000*60))%60;if(min_693 < 10) {min_693 = "0" + min_693;}min_693 = min_693.toString();var sec_693 = parseInt(ost_693/1000)%60;if(sec_693 < 10) {sec_693 = "0" + sec_693;}sec_693 = sec_693.toString(); timethis_693 = day_693 + " : " + hour_693 + " : " + min_693 + " : " + sec_693;$(".timerhello_693 p.result .result-day").text(day_693);$(".timerhello_693 p.result .result-hour").text(hour_693);$(".timerhello_693 p.result .result-minute").text(min_693);$(".timerhello_693 p.result .result-second").text(sec_693);}function getfrominputs_693(){string_was_693 = "Wed Nov 11 2015 19:22:28 GMT+0200 (Фінляндія (зима))"; string_sec_693 = "16848000900"; get_timer_693(string_was_693,string_sec_693);setInterval(function(){get_timer_693(string_was_693,string_sec_693);},1000);}$(document).ready(function(){ getfrominputs_693();});</script>
<style type="text/css">second-my{width: 260px;padding: 0px;text-align: center;}.second-my .result span.items{padding: 10px 7px;display: inline-block;margin: 0 4px 0 -5px;font-size: 20px;-webkit-border-radius:4px;-moz-border-radius: 4px; border-radius: 4px;-webkit-box-shadow: 0px 1px 1px 0px rgb(178, 176, 176);-moz-box-shadow: 0px 1px 1px 0px rgb(178, 176, 176);box-shadow: 0px 1px 1px 0px rgb(178, 176, 176);background: rgb(125,126,125); /* Old browsers */background: -moz-linear-gradient(top, rgba(125,126,125,1) 0%, rgba(14,14,14,1) 100%); /* FF3.6+ */background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(125,126,125,1)), color-stop(100%,rgba(14,14,14,1))); /* Chrome,Safari4+ */background: -webkit-linear-gradient(top, rgba(125,126,125,1) 0%,rgba(14,14,14,1) 100%); /* Chrome10+,Safari5.1+ */background: -o-linear-gradient(top, rgba(125,126,125,1) 0%,rgba(14,14,14,1) 100%); /* Opera 11.10+ */background: -ms-linear-gradient(top, rgba(125,126,125,1) 0%,rgba(14,14,14,1) 100%); /* IE10+ */ background: linear-gradient(to bottom, rgba(125,126,125,1) 0%,rgba(14,14,14,1) 100%); /* W3C */filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#7d7e7d", endColorstr="#0e0e0e",GradientType=0 ); /* IE6-9 */color: white; font-family: "Russo One", sans-serif;min-width: 30px;letter-spacing: 2px;}.second-my .result span.dot{ margin: 0 -1px;position: relative;left: -4px;font-family: "Russo One", sans-serif;font-size: 17px;}.second-my .result {float: right;}.second-my .titles{position: relative;height: 0;right: -23px;width: 300px;}.second-my .titles span{font-size: 10px;position: relative;top: 12px;}.second-my .titles span.mm{right: 18px;}.second-my .titles span.hh{right: 40px; }.second-my .titles span.dd{right: 62px;}.second-my p.titloftimer{ font-size: 18px;margin: 0 auto;left: 10px; position: relative; font-family: "Russo One", sans-serif;}/*ресет*/.timerhello span{margin: 0;padding: 0;border: 0;font-size: 100%;font: inherit;vertical-align: baseline; }.timerhello p{font-size: 100%;font: inherit;color: #191919;font-family: Verdana, sans-serif; font-size: 13px;margin: 0 0 10px 0;line-height: 17px;}.clearf{visibility: hidden;display: block;font-size: 0;content: " ";clear: both;height: 0; }p.hellotimercopy{display:none!important;} </style>
<div class="second-my timerhello timerhello_693">
<div class="second-my-content">
<link href="http://fonts.googleapis.com/css?family=Russo+One&subset=latin,cyrillic" rel="stylesheet" type="text/css">
<p class="titloftimer">До літніх канікул</p>
<br>
<p class="result">
<span class="result-day items">194</span>
<span class="dot">дн. </span>
<span class="result-hour items">23</span>
<span class="dot">:</span>
<span class="result-minute items">59</span>
<span class="dot">:</span>
<span class="result-second items">54</span>
</p>
<div class="clearf"></div>
<!--#timer block1-->

Прикрепления: 0953165.png(47Kb)