

Oto skrypt:
Sekcja HEAD
<script LANGUAGE="JAVASCRIPT"> today = new Date(); BigDay = new Date("January 1, 2001") msPerDay = 24 * 60 * 60 * 1000 ; timeLeft = (BigDay.getTime() - today.getTime()); e_daysLeft = timeLeft / msPerDay; daysLeft = Math.floor(e_daysLeft); tdays = Math.floor(e_daysLeft); e_hrsLeft = (e_daysLeft - daysLeft)*24; hrsLeft = Math.floor(e_hrsLeft); minsLeft = Math.floor((e_hrsLeft - hrsLeft)*60); var id,pause=0,position=0; function imascroller() { // variables declaration var i,k,msg="Zostało " +daysLeft+" dni, "+hrsLeft+" godzin(y) i "+minsLeft+" minut(y) do trzeciego tysiąclecia! "; // increase msg k=(150/msg.length)+1; for(i=0;i<=k;i++) msg+=" "+msg; // show it to the window document.form2.imascroller.value=msg.substring(position,position+300); // set new position if(position++==300) position=0; // repeat at entered speed id=setTimeout("imascroller()",200); } // -- End Hiding Here --> </script>
Sekcja BODY
I w BODY
<body onload="imascroller()">