So weit war ich auch schon,deshalb begann ich zu ändern. Er geht immer noch nicht. Habs gemacht wie du es beschrieben hast.
Script:Zeigen
var advKalender=[];
advKalender[1]="<embed src='http://www.youtube.com/v/szUl-Na5Gbk?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[2]="<embed src='http://www.youtube.com/v/9Y_eHnwF4bg?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[3]="<embed src='http://www.megavideo.com/v/Q4E4BP7L89aa ... b177b00201' type='application/x-shockwave-flash' allowfullscreen='true' width='669' height='360'></embed>";
advKalender[4]="<embed src='http://www.megavideo.com/v/HP0GIR218cbf ... 7a37fb7b11' type='application/x-shockwave-flash' allowfullscreen='true' width='669' height='360'></embed>";
advKalender[5]="<embed src='http://www.youtube.com/v/Ppm4brxNXtU?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[6]="<embed src='http://www.youtube.com/v/b8Gd69k5JOA?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[7]="<embed src='http://www.youtube.com/v/31cH1BdaFg4?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[8]="<embed src='http://www.youtube.com/v/-sSzFT0mzd0?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[9]="<embed src='http://www.youtube.com/v/3g_t_xqaPVE?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[10]="<embed src='http://www.youtube.com/v/VABEBtZZmqs?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[11]="<embed src='http://www.youtube.com/v/piVyoForQog?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[12]="<embed src='http://www.youtube.com/v/T3lMlBe9ZAM?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[13]="<embed src='http://www.youtube.com/v/BQ70xQsupYU?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[14]="<embed src='http://www.youtube.com/v/n9qL6KMLb-U?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[15]="<embed src='http://www.youtube.com/v/S9VLPoZIRRI?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[16]="<embed src='http://www.youtube.com/v/8BxYABAznjA?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[17]="<embed src='http://www.youtube.com/v/sZG1s2zDWQM?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[18]="<embed src='http://www.youtube.com/v/aw_jfHZ4KRc?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[19]="<embed src='http://www.youtube.com/v/hzbbFXOUaeo?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[20]="<embed src='http://www.youtube.com/v/JWKEqM_Y4EU?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[21]="<embed src='http://www.youtube.com/v/ifwSVvKMy-I?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[22]="<embed src='http://www.youtube.com/v/kK4z1AidWPQ?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[23]="<embed src='http://www.youtube.com/v/MpHgp-tKwl0?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[24]="<embed src='http://www.youtube.com/v/xwpHCL4X3Vw?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>Wir, das 1.FCK Herzblut-Chatteam wünschen euch frohe Weihnachten und einen guten Rutsch ins neue Jahr.";
function adventsKalender(user, tag){
tag=parseInt(tag);
datum=new Date();
monat=datum.getMonth();
tag1=datum.getDate();
if(tag==0||isNaN(tag)){
var kalender=[];
for(var i=1;i<=24;i++){
kalender="<input type='button' onclick='sendeText("/advent "+i+"");' value='"+i+"' class='button'>";
}
kalender=arrayMix(kalender)
document.write("<div id='adventsKalender'>"+kalender.join(" ")+"</div><style type='text/css'>#adventsKalender .button{color:#FF0000; font-weight:bold; background-color:transparent; border:2px #FF0000 outset; margin:5px;} #adventsKalender{background-image:url(http://fckfans.kilu.de/hg/xmas.gif); width:225px; height:469px;}</style>");
return;
}
if(monat!=11){
document.write("Der Adventskalender funktioniert nur im Dezember.");
return;
}
if(user!=myNick){
tbls=document.getElementsByTagName("table");
tbls[tbls.length-1].style.display="none";
}
if(tag>tag1){
document.write("Nicht schummeln. Dieses Türchen darf erst am "+tag+" geöffnet werden
");
return;
}
if(tag>24){
document.write("Es gibt nur 24 Türchen
")
return;
}
document.write(advKalender[tag])
}
function arrayMix(arr){
var tmp, rand;
for(var i =0; i < arr.length; i++){
rand = Math.floor(Math.random() * arr.length);
tmp = arr;
arr = arr[rand];
arr[rand] =tmp;
}
return arr;
}
advKalender[1]="<embed src='http://www.youtube.com/v/szUl-Na5Gbk?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[2]="<embed src='http://www.youtube.com/v/9Y_eHnwF4bg?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[3]="<embed src='http://www.megavideo.com/v/Q4E4BP7L89aa ... b177b00201' type='application/x-shockwave-flash' allowfullscreen='true' width='669' height='360'></embed>";
advKalender[4]="<embed src='http://www.megavideo.com/v/HP0GIR218cbf ... 7a37fb7b11' type='application/x-shockwave-flash' allowfullscreen='true' width='669' height='360'></embed>";
advKalender[5]="<embed src='http://www.youtube.com/v/Ppm4brxNXtU?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[6]="<embed src='http://www.youtube.com/v/b8Gd69k5JOA?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[7]="<embed src='http://www.youtube.com/v/31cH1BdaFg4?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[8]="<embed src='http://www.youtube.com/v/-sSzFT0mzd0?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[9]="<embed src='http://www.youtube.com/v/3g_t_xqaPVE?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[10]="<embed src='http://www.youtube.com/v/VABEBtZZmqs?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[11]="<embed src='http://www.youtube.com/v/piVyoForQog?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[12]="<embed src='http://www.youtube.com/v/T3lMlBe9ZAM?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[13]="<embed src='http://www.youtube.com/v/BQ70xQsupYU?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[14]="<embed src='http://www.youtube.com/v/n9qL6KMLb-U?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[15]="<embed src='http://www.youtube.com/v/S9VLPoZIRRI?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[16]="<embed src='http://www.youtube.com/v/8BxYABAznjA?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[17]="<embed src='http://www.youtube.com/v/sZG1s2zDWQM?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[18]="<embed src='http://www.youtube.com/v/aw_jfHZ4KRc?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[19]="<embed src='http://www.youtube.com/v/hzbbFXOUaeo?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[20]="<embed src='http://www.youtube.com/v/JWKEqM_Y4EU?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[21]="<embed src='http://www.youtube.com/v/ifwSVvKMy-I?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[22]="<embed src='http://www.youtube.com/v/kK4z1AidWPQ?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[23]="<embed src='http://www.youtube.com/v/MpHgp-tKwl0?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>";
advKalender[24]="<embed src='http://www.youtube.com/v/xwpHCL4X3Vw?fs=1&hl=de_DE' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='385'></embed>Wir, das 1.FCK Herzblut-Chatteam wünschen euch frohe Weihnachten und einen guten Rutsch ins neue Jahr.";
function adventsKalender(user, tag){
tag=parseInt(tag);
datum=new Date();
monat=datum.getMonth();
tag1=datum.getDate();
if(tag==0||isNaN(tag)){
var kalender=[];
for(var i=1;i<=24;i++){
kalender="<input type='button' onclick='sendeText("/advent "+i+"");' value='"+i+"' class='button'>";
}
kalender=arrayMix(kalender)
document.write("<div id='adventsKalender'>"+kalender.join(" ")+"</div><style type='text/css'>#adventsKalender .button{color:#FF0000; font-weight:bold; background-color:transparent; border:2px #FF0000 outset; margin:5px;} #adventsKalender{background-image:url(http://fckfans.kilu.de/hg/xmas.gif); width:225px; height:469px;}</style>");
return;
}
if(monat!=11){
document.write("Der Adventskalender funktioniert nur im Dezember.");
return;
}
if(user!=myNick){
tbls=document.getElementsByTagName("table");
tbls[tbls.length-1].style.display="none";
}
if(tag>tag1){
document.write("Nicht schummeln. Dieses Türchen darf erst am "+tag+" geöffnet werden

return;
}
if(tag>24){
document.write("Es gibt nur 24 Türchen

return;
}
document.write(advKalender[tag])
}
function arrayMix(arr){
var tmp, rand;
for(var i =0; i < arr.length; i++){
rand = Math.floor(Math.random() * arr.length);
tmp = arr;
arr = arr[rand];
arr[rand] =tmp;
}
return arr;
}
Es werden nur die 24 Kästchen angezeigt und für 1 Sekunde das Bild.