<html>
<head>
<title></title>
<meta name="author" content="it.azubi">
<meta name="generator" content="Ulli Meybohms HTML EDITOR">
</head>
<body text="#000000" bgcolor="#FFFFFF" link="#FF0000" alink="#FF0000" vlink="#FF0000">
<script language="JavaScript">
<!--
mydate=new Date();
daym=mydate.getDate();
ziel=new Array;
for(k=1;k<=24;k++){
ziel[k]="";
}
for(j=1;j<=daym;j++){
ziel[j]="datei"+j+".html";
}
function mach_was(akt){
if(ziel[akt]!=""){window.open(ziel[akt],"Fenster1","width=310,height=400,left=200,top=200");}
else{alert("Na na na heut ist noch nicht der "+akt+"te !!!");}
}
tabelle="<table BORDER=0 CELLSPACING=4 CELLPADDING=4 WIDTH='20%'><tr align='center'><td VALIGN=TOP COLSPAN='8'><b><font color='#000000'><font size=-1>Adventskalender</font></font></b></td></tr>";
for(i=1;i<=24;i){
tabelle+="<tr>";
for(j=1;j<=4 && i<=24;j++){
tabelle+="<td ALIGN=CENTER VALIGN=TOP class=''><A HREF='JavaScript:mach_was("+i+")'>"+i+"</a></td>";
i++;
}
tabelle+="</tr>";
}
tabelle+="</table>";
self.document.open();
self.document.write(tabelle);
self.document.close();
//-->
</script>
<noscript></noscript>
</body>
</html>
So gehts auch ist ein kleines bischen kürzer weil die tabelle automatisch erstellt wird du brauchst dann nur noch die Dateien
Datei1.html
.
.
.
Datei24.html
gruß marco