Таймер до "КОНЦА СВЕТА"
|
|
GOORU |
Дата: Суббота, 26.12.2009, 8:54:00 PM | Сообщение # 1 |
Сообщений: 4
Статус: OF
| Чтоб точно считал - ничего не меняй! Code <script language="JavaScript1.2"> //Script courtesy of Sharon Gartenberg's Date Countdown //JavaScript generator under the GNU General Public License var today = new Date; var Future0 = new Date; ThisYear = 2012; var FutureMonth = 11; var FutureDate = 20; var faraevent = ""; Future0.setMonth(FutureMonth, FutureDate); Future0.setFullYear(ThisYear); today1 = Date.parse(today); future1 = Date.parse(Future0); secleft = future1 - today1; miliday = 24 * 60 * 60 * 1000; daysleft = secleft/miliday; daysleftint = Math.round(daysleft); if (daysleftint > 1) document.write("<font color=#ff0000>До 21.12.2012 года осталось ", daysleftint, " дней", faraevent , "!</font>"); else if (daysleftint == 1) document.write(faraevent, " is tomorrow! "); else if (today1 == future1) document.write(faraevent, " is today! "); </script> </div> <div align="center" style="text-align: center;">А точнее</div> <div id="x1" style="text-align: center;padding-top: 14px; padding-right: 14px; padding-bottom: 14px; padding-left: 14px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "></div> <div align="center" style="text-align: center;"> <script Language="javascript"> var timeStr, dateStr, ostStr, x; function clock() { now= new Date(); ex = new Date(2012,12,21,0,0,0); hours= now.getHours(); minutes= now.getMinutes(); seconds= now.getSeconds(); timeStr= "" + hours; timeStr+= ((minutes < 10) ? ":0" : ":") + minutes; date= now.getDate(); month= now.getMonth()+1; year= now.getYear(); dateStr= "" + date; dateStr+= ((month < 10) ? "/0" : "/") + month; dateStr+= "/" + year; ostStr= ""; x = (ex.getTime() - now.getTime())/1000; ostStr = Math.floor(x/60/60) + ' ч. '; ostStr = ostStr + Math.floor((x/60/60 - Math.floor(x/60/60))*60) + ' мин. '; x = (((x/60/60 - Math.floor(x/60/60))*60) - Math.floor((x/60/60 - Math.floor(x/60/60))*60))*60; ostStr = ostStr + Math.floor(x) + ' сек. '; document.getElementById('x1').innerHTML = 'До 21 декабря 2012 года осталось: ' + '' + ostStr; Timer= setTimeout("clock()",10); } clock(); </script> Скрипт отредактировал админ.
Сделаем мир!!!
|
Страна:  |
| |
Miroslav |
Дата: Пятница, 26.02.2010, 10:58:17 PM | Сообщение # 2 |
Сообщений: 2
Статус: OF
| А можеш ту часть где написано с А точнее и все что там написано сделать на какомта фоне????? пожайлуста а то умя насайте оно на черном фоне и нечего невидно!!!
=)
|
Страна:  |
| |
scriptozna |
Дата: Суббота, 27.02.2010, 8:32:22 AM | Сообщение # 3 |
Admin
Сообщений: 441
Статус: OF
| Miroslav, Шрифт белый Code
<script language="JavaScript1.2"> //Script courtesy of Sharon Gartenberg's Date Countdown //JavaScript generator under the GNU General Public License var today = new Date; var Future0 = new Date; ThisYear = 2012; var FutureMonth = 11; var FutureDate = 20; var faraevent = ""; Future0.setMonth(FutureMonth, FutureDate); Future0.setFullYear(ThisYear); today1 = Date.parse(today); future1 = Date.parse(Future0); secleft = future1 - today1; miliday = 24 * 60 * 60 * 1000; daysleft = secleft/miliday; daysleftint = Math.round(daysleft); if (daysleftint > 1) document.write("<font color=#ffffff>До 21.12.2012 года осталось ", daysleftint, " дней", faraevent , "!</font>"); else if (daysleftint == 1) document.write(faraevent, " is tomorrow! "); else if (today1 == future1) document.write(faraevent, " is today! "); </script> </div> <div align="center" style="text-align: center;color:#ffffff;">А точнее</div> <div id="x1" style="text-align: center;padding-top: 14px; padding-right: 14px; padding-bottom: 14px; padding-left: 14px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; "></div> <div align="center" style="text-align: center;font-size:12px; color:#ef0e53;"> <script Language="javascript"> var timeStr, dateStr, ostStr, x; function clock() { now= new Date(); ex = new Date(2012,12,21,0,0,0); hours= now.getHours(); minutes= now.getMinutes(); seconds= now.getSeconds(); timeStr= "" + hours; timeStr+= ((minutes < 10) ? ":0" : ":") + minutes; date= now.getDate(); month= now.getMonth()+1; year= now.getYear(); dateStr= "" + date; dateStr+= ((month < 10) ? "/0" : "/") + month; dateStr+= "/" + year; ostStr= ""; x = (ex.getTime() - now.getTime())/1000; ostStr = Math.floor(x/60/60) + ' ч. '; ostStr = ostStr + Math.floor((x/60/60 - Math.floor(x/60/60))*60) + ' мин. '; x = (((x/60/60 - Math.floor(x/60/60))*60) - Math.floor((x/60/60 - Math.floor(x/60/60))*60))*60; ostStr = ostStr + Math.floor(x) + ' сек. '; document.getElementById('x1').innerHTML = '<font color=#ffffff>До 21 декабря 2012 года осталось: ' + '' + ostStr; Timer= setTimeout("clock()",10); } clock(); </script> </div>
В личке отвечаю только на ЛИЧНЫЕ вопросы.
|
Страна:  |
| |
Miroslav |
Дата: Суббота, 27.02.2010, 4:09:28 PM | Сообщение # 4 |
Сообщений: 2
Статус: OF
| Большое спасибо!!!
=)
|
Страна:  |
| |
GOORU |
Дата: Среда, 03.03.2010, 1:46:30 AM | Сообщение # 5 |
Сообщений: 4
Статус: OF
| Для черных сайтов Code <table style="width: 195px; height: 195px; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(0, 0, 0); border-collapse: collapse; background-position: initial initial; background-repeat: initial initial; " width="" align="center"><tbody><tr><td style="text-align: center;"><b><span style="font-size: 14pt; "><script type="text/javascript" src="http://kovcheg.ucoz.org/js/2012-timer.js"></script></span></b></td></tr></tbody></table> Добавлено (03.03.2010, 1:46:30 Am) --------------------------------------------- Можно также воспользоваться функцией импорт удаленного кода и ввести: http://partnery.ucoz.net/SUPERSCRIPT/1111111.htm, полученный код $RCODE_id$ вводим в HTML в созданный в конструкторе блок и получаем оригинальнейший таймер!
Сделаем мир!!!
Сообщение отредактировал GOORU - Среда, 03.03.2010, 1:32:49 AM |
Страна:  |
| |
xvost32 |
Дата: Воскресенье, 06.06.2010, 8:00:12 PM | Сообщение # 6 |
Сообщений: 2
Статус: OF
| бред
|
Страна:  |
| |
smile37rus |
Дата: Вторник, 08.02.2011, 11:03:05 PM | Сообщение # 7 |
Сообщений: 1
Статус: OF
| угарно
|
Страна:  |
| |
gamer_1 |
Дата: Пятница, 30.09.2011, 9:48:11 PM | Сообщение # 8 |
Сообщений: 2
Статус: OF
| клёва!!!!
|
Страна:  |
| |