Lemur zaprasza
Odliczanie dni Skopiuj przykładowy kod. <script> <!-- /* Count down until any date script- By Website Abstraction (www.wsabstract.com) Over 200+ free scripts here! */ //change the text below to reflect your own, var before="moich imienin!" var current="Moje imieniny. Proszę o życzenia!" var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec") function countdown(yr,m,d){ var today=new Date() var todayy=today.getFullYear() var todaym=today.getMonth() var todayd=today.getDate() var todaystring=montharray[todaym]+" "+todayd+", "+todayy var futurestring=montharray[m-1]+" "+d+", "+yr var difference=(Math.round((Date.parse(futurestring)-Date.parse(todaystring))/(24*60*60*1000))*1) if (difference==0) document.write(current) else if (difference>0) document.write("Zostało "+difference+" dni do "+before) } //enter the count down date using the format year/month/day countdown(2001,06,29) //--> </script> |