hi
found this code in the net
it is part of a calender which should go one month up and then update the output
since i have little idea about the problems of different browsers i dont know what to search for
can anybody give me a clue where my problem lies and where i can find a good source for information
thx
found this code in the net
it is part of a calender which should go one month up and then update the output
since i have little idea about the problems of different browsers i dont know what to search for
can anybody give me a clue where my problem lies and where i can find a good source for information
thx
Code:
function vor(MN)
{
var now = new Date();
var Monat = now.getMonth()
var Jahr = now.getYear()
if (Jahr < 2000) Jahr+=1900
var Wo = MN.indexOf(" ")
Monatname = MN.substring(0,Wo)
Jahr = eval(MN.substring(Wo+1,MN.length))
if (Monatname=="Januar"){Monat=0}
if (Monatname=="Februar"){Monat=1}
if (Monatname=="März"){Monat=2}
if (Monatname=="April"){Monat=3}
if (Monatname=="Mai"){Monat=4}
if (Monatname=="Juni"){Monat=5}
if (Monatname=="Juli"){Monat=6}
if (Monatname=="August"){Monat=7}
if (Monatname=="September"){Monat=8}
if (Monatname=="Oktober"){Monat=9}
if (Monatname=="November"){Monat=10}
if (Monatname=="Dezember"){Monat=11}
var Monat = Monat + 1
if (Monat==12)
{
Monat = 0
Jahr = Jahr + 1
}
var Monatname = ""
var Erster = new Date(Jahr,Monat,1)
update(Monat,Jahr,Erster,0)
}