მთავარი » 2011 ნოემბერი 15 » ახალ წლამდე დარჩა....?
4:46 PM ახალ წლამდე დარჩა....? | |
Code <CENTER><IMG src="http://leonsio.ge/wp-content/uploads/2009/12/new_year_.jpg" border="1" height="180" width="160" alt=""></CENTER> <CENTER><BR>ახალ წლამდე დარჩა:</CENTER><BR> <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()); if (totalRemains>1){ var RemainsSec = (parseInt(totalRemains/1000)); var RemainsFullDays=(parseInt(RemainsSec)); var secInLastDay=RemainsSec-RemainsFullDays*24*3600; var RemainsFullHours=(parseInt(secInLastDay/3600)); if (RemainsFullHours<10){RemainsFullHours="0"+RemainsFullHours}; var secInLastHour=secInLastDay-RemainsFullHours*3600; var RemainsMinutes=(parseInt(secInLastHour/60)); if (RemainsMinutes<10){RemainsMinutes="0"+RemainsMinutes}; var lastSec=secInLastHour-RemainsMinutes*60; if (lastSec<10){lastSec="0"+lastSec}; document.getElementById("RemainsFullDays").innerHTML=RemainsFullDays+" წამი"; setTimeout('fulltime()',10) } else{ document.getElementById("clock").innerHTML="გილოცავთ შობა ახალ წელს!!!"; } } </SCRIPT> <DIV align="center"><SPAN id="clock"></DIV> <DIV align="center"><B><SPAN id="RemainsFullDays"></SPAN></B></DIV><BR> <SCRIPT language=JavaScript>fulltime();</SCRIPT> <DIV align="center"><SPAN id="clock"></DIV> <DIV align="center"><B><SPAN id="RemainsFullDays"></SPAN></B></DIV><BR> | |
|
სულ კომენტარები: 0 | |