Tulos

Koodi

Tämä tulee BODY-osastoon

<script type="text/javascript">
// Original: Count up from any date script- By Website Abstraction (www.wsabstract.com)
// Modified: Osmo Saarikumpu 2002-09-06

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.getFullYear()
var todaym=today.getMonth()
var todayd=today.getDate()
var todaystring=montharray[todaym]+" "+todayd+", "+todayy
var paststring=montharray[m-1]+" "+d+", "+yr
var Erotus=(Math.round((Date.parse(todaystring)-Date.parse(paststring))/(24*60*60*1000))*1)
document.write("Tämä scriptiversio valmistui "+Erotus+" päivää sitten.")
}

// aseta päivämäärä vastaavassa muodossa (vuosi,kuukausi,päivä)

countup(2002,09,06)
</script>
Weppipakin kotisivulle