Суббота, 08.02.2025, 22:43 На сайте время по Москве
Главная | Регистрация | Вход

Реклама
Реклама
Реклама






  • Страница 1 из 1
  • 1
До нового года осталось....
eXz
Дата: Среда, 15.12.2010, 21:01 | Сообщение # 1
Сообщений: 516
Репутация: 29
Награды: 5
Данный скрипт подходит к темным и светлым дизайнам!

Code
<span style="color:orange"><div align="center"><div align="center"><img src="http://files.myopera.com/scorpimen/blog/Tree.png" width="250"></div>  
<div align="center">  
<SCRIPT language="JavaScript" type="text/javascript">  
function fulltime () {  
var time=new Date();  
var newYear=new Date("jan,1,2011,00:00:00");  
var totalRemains=(newYear.getTime()-time.getTime());  

</script></div><div align="center"><font color="#c9a82f">До Нового Года Осталось:</font></div><div align="center"><br>  
</div><div id="x1"></div>  
<div align="center"><script type="text/javascript">  
function cdtime(container, targetdate){  
if (!document.getElementById || !document.getElementById(container)) return  
this.container=document.getElementById(container)  
this.currentTime=new Date()  
this.targetdate=new Date(targetdate)  
this.timesup=false  
this.updateTime()  
}  
cdtime.prototype.updateTime=function(){  
var thisobj=this  
this.currentTime.setSeconds(this.currentTime.getSeconds()+1)  
setTimeout(function(){thisobj.updateTime()}, 1000)  
}  
cdtime.prototype.displaycountdown=function(baseunit, functionref){  
this.baseunit=baseunit  
this.formatresults=functionref  
this.showresults()  
}  
cdtime.prototype.showresults=function(){  
var thisobj=this  
var timediff=(this.targetdate-this.currentTime)/1000  
if (timediff<0){  
this.timesup=true  
this.container.innerHTML=this.formatresults()  
return  
}  
var oneMinute=60  
var oneHour=60*60  
var oneDay=60*60*24  
var dayfield=Math.floor(timediff/oneDay)  
var hourfield=Math.floor((timediff-dayfield*oneDay)/oneHour)  
var minutefield=Math.floor((timediff-dayfield*oneDay-hourfield*oneHour)/oneMinute)  
var secondfield=Math.floor((timediff-dayfield*oneDay-hourfield*oneHour-minutefield*oneMinute))  
if (this.baseunit=="hours"){  
hourfield=dayfield*24+hourfield  
dayfield="n/a"  
}  
else if (this.baseunit=="minutes"){  
minutefield=dayfield*24*60+hourfield*60+minutefield  
dayfield=hourfield="n/a"  
}  
else if (this.baseunit=="seconds"){  
var secondfield=timediff  
dayfield=hourfield=minutefield="n/a"  
}  
this.container.innerHTML=this.formatresults(dayfield, hourfield, minutefield, secondfield)  
setTimeout(function(){thisobj.showresults()}, 1000)  
}  
function formatresults2(){  
if (this.timesup==false){  
var displaystring="<span class='nonewyear'>"+arguments[0]+" Дней "+arguments[1]+" Часов<br>"+arguments[2]+" Минут "+arguments[3]+" Секунд</span> "  
}  
else{  
var displaystring="<span class='newyear1'>С новым годом!!!</span>"  
//alert("С новым годом!!!")  
}  
return displaystring  
}  
</script>  
<div id="countdowncontainer2"></div>  
<script type="text/javascript">  
var currentyear=new Date().getFullYear()  
var thischristmasyear=(new Date().getMonth()==0 && new Date().getDate()==1)? currentyear : currentyear + 1  
var christmas=new cdtime("countdowncontainer2", "january 1, "+thischristmasyear+" 0:0:00")  
christmas.displaycountdown("days", formatresults2)  
</script> <br>  
</div> </div></span>


  • Страница 1 из 1
  • 1
Поиск:

Сегодня нас посетили
Лучшии пользователиНовые пользователи
eXz Постов [516]
paradox Постов [52]
LoL_BoT Постов [51]
p0z1t1v Постов [43]
BotsMan Постов [40]
Yuratr Дата [04.09.2024]
xyn-bol Дата [01.06.2024]
PonnonDut Дата [26.04.2018]
daxian Дата [22.04.2018]
JustinOtopejgOlyhivlIZ Дата [22.01.2017]

PRO86.3DN.RU © 2025 | Хостинг от uCoz
Пути к - sitemap.xml | sitemap-forum.xml | urllist.txt
На сайте вы найдете все для Counter Strike 1.6 - CS Source- uCoz
Фотошоп - GTA San Andreas - Фильмы - MP3 - Читы для cs
Онлайн сериалы и многое другое..
Для корректного отображения страниц сайта рекомендуем использовать Браузер
C разрешением экрана от 1024х768 и выше