Undskyld jeg var lidt for hurtig. Vi prøver igen
<!-- Skiftende tekst Script
function getWeekNr()
{
var today = new Date();
Year = takeYear(today);
Month = today.getMonth();
Day = today.getDate();
now = Date.UTC(Year,Month,Day+1,0,0,0);
var Firstday = new Date();
Firstday.setYear(Year);
Firstday.setMonth(0);
Firstday.setDate(1);
then = Date.UTC(Year,0,1,0,0,0);
var Compensation = Firstday.getDay();
if (Compensation > 3) Compensation -= 4;
else Compensation += 3;
NumberOfWeek = Math.round((((now-then)/86400000)+Compensation)/7);
return NumberOfWeek;
}
function takeYear(theDate)
{
x = theDate.getYear();
var y = x % 100;
y += (y < 38) ? 2000 : 1900;
return y;
}
theDate= new Date();
var weeknr = getWeekNr();
var numtekst = 52;
tekst = new Array(numtekst+1);
tekst[1] = "Tekst 1";
tekst[2] = "Tekst 2";
tekst[3] = "Tekst 3";
.... Helt op til 52 uger
// -->
</script>
<font face="Verdana"><font style="font-size: 11px;"><script>
<!--
document.write(tekst[day] + '<br>');
// End -->
</script>