JP_Linkens
Gebruiker
- Lid geworden
- 15 mrt 2006
- Berichten
- 64
Heey, deze teller telt af dus laat zien hoeveel dagen de site al bestaat, kan iemand me hem aanpassen zodat hij laat zien hoeveel dagen weken maanden en jaren oud hij is.
alvast bedankt.
alvast bedankt.
HTML:
<SCRIPT LANGUAGE="JavaScript">
// Script featured on Able2Know.com
// Find free scripts & get free help: http://search.able2know.com/web_development/scripts/
<!-- Begin
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
function countup(yr,m,d) {
var today=new Date();
var todayy=today.getYear();
// Y2K Fix by Isaac Powell
// http://onyx.idbsu.edu/~ipowell
if ((navigator.appName == "Microsoft Internet Explorer") && (todayy < 2000))
todayy="19" + todayy;
if (navigator.appName == "Netscape")
todayy=1900 + todayy;
var todaym=today.getMonth();
var todayd=today.getDate();
var todaystring=montharray[todaym]+" "+todayd+", "+todayy;
var paststring=montharray[m-1]+" "+d+", "+yr;
var difference=(Math.round((Date.parse(todaystring)-Date.parse(paststring))/(24*60*60*1000))*1);
document.write("JSS was created " + difference + " days ago.");
}
countup(1997,08,29); // Date in format: (year,month,day)
// End -->
</script>