.
დაყენების ინსტრუქცია: ქვემოთ მოყვანილი სკრიპტი ჩასვით საიტის ბლოკში
<table> <tbody> <tr> <td> </td> <td> <div id="x1"> </div> <script language="JavaScript"> var timeStr, dateStr, ostStr, x; function clock() { now= new Date(); ex = new Date(2013,0,1,0,0,0); hours= now.getHours(); minutes= now.getMinutes(); seconds= now.getSeconds(); timeStr= "" + hours; timeStr+= ((minutes < 10) ? ":0" : ":") + minutes; timeStr+= ((seconds < 10) ? ":0" : ":") + seconds; 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) + ' წამი. '; x = (x - Math.floor(x))*10; ostStr = ostStr + Math.floor(x) + ' მილიწამი. '; document.getElementById('x1').innerHTML ='<P align=center><FONT color=000000 size=3><b>სულ ახალ წლამდე დარჩა:</b><br><FONT color=#ed3a0e size=5>' + ostStr; Timer= setTimeout("clock()",10); } clock(); </script></td> <td> </td> </tr> </tbody> </table>
დააკოპირეთ