| Tytuł |
Odliczanie od okre?lonej daty |
| Przegląd głosów |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| 1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
|
| URL |
http://www.megaskrypty.com |
| Głosuj |
Ilość głosów : 0, Średnia : 0.00 |
| Data dodania |
12-07-2004 |
| ETC |
Odsłon : 1558, Wizyt : 1838, Komentarz : 0
|
Skrypt pokazuje ile dni min??o od danej daty. Dat? t? ustalamy w cz??ci: countup(2002,05,16) wpisuj?c rok, miesi?c i dzie?. Tekst jaki ma si? pojawi? wpisujemy w cz??ci: document.write("...
<SCRIPT language=Javascript type=text/javascript>
<!--
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
var difference
function countup(yr,m,d){
var today=new Date()
var todayy=today.getYear()
var todaym=today.getMonth()
var todayd=today.getDate()
var todaystring=montharray[todaym]+" "+todayd+", "+todayy
var paststring=montharray[m-1]+" "+d+", "+yr
difference=(Math.round((Date.parse(todaystring)-Date.parse(paststring))/(24*60*60*1000))*1)
if (difference==-1) difference+=" dzie?"
else
if (difference==1) difference+=" dzie?"
else difference+=" dni"
}
countup(2002,05,16)
function wybierz(s) {
if (s.options[s.selectedIndex].value != "none"){
var gourl = s.options[s.selectedIndex].value;
window.top.location.href = gourl;}
}
document.write(" Nasz serwis powsta? 16 maj 2002. Czyli: <b>"+difference+"</b> temu.");
//-->
</SCRIPT> |
|
|