|
|
მთავარი » ფაილები » სკრიფრები | [ მასალის დამატება ] |
2012-09-27, 5:47 PM | |
ეს სკრიპტი არის თუ რამდენი დგე დარჩა ახალ წლამდე იმედია გამოგადგებათ:))))) Code <div align="left"><img alt="" src="http://ftp-gelesson.ucoz.net/_ph/1/2/367331101.png"></div><div style="padding:2px; border: 1px dashed black; width: 180px;" align="center"> <div style="width: 180px;" align="center">ახალ წლამდე დარჩა:</div> <div id="x1" style="padding:6px; border: 1px dashed black; width: 160px;" align="center"> </div> <div align="center"><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; 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 = ' ' + '' + ostStr; Timer= setTimeout("clock()",10); } clock(); </script></div></div> | |
ნანახია: 903 | რამოტვირთვები: 0 | კომენტარი: 1 | რეიტინგი: 0.0/0 |
სულ კომენტარები: 1 | |
|