100 Jahre Bertolt Brecht - Online Spiel
\n");
questionWindow.document.write("\n");
questionWindow.document.write("\n");
questionWindow.document.write("
Richtig!\n");
questionWindow.document.write("\n");
questionWindow.document.write("\n");
questionWindow.document.write("
Falsch!\n");
questionWindow.document.write("\n");
questionWindow.document.write("\n");
questionWindow.document.write("
\n");
questionWindow.document.write("\n");
questionWindow.moveTo(screen.width/2-200,70);
questionWindow.setRight(rightnum);
questionWindow.document.l1.document.l2.visibility=false;
questionWindow.document.l1.document.l3.visibility=false;
questionWindow.document.l1.visibility=false;
questionWindow.setParent(this);
questionWindow.focus();
}
function questionNow(){
// Frage soll gestellt werden
// wievile Punkte gibts fuer die Antwort? max 500, min 50
punkte = Math.round(Math.random()*500+1);
// Timer anhalten
lock = true;
for (;;){
fnum = Math.round(Math.random()*50);
if (fnum > 49)
fnum = 49;
if (madeQuests == qArr.length-1){
madeQuests = 0;
for (i = 0; i < dArr.length; i++)
dArr[i] = "";
}
if (dArr[fnum] != "x"){
dArr[fnum] = "x";
fragetext = qArr[fnum];
if (fnum > 0){
a1 = aArr[fnum*3];
a2 = aArr[fnum*3+1];
a3 = aArr[fnum*3+2];
}else {
a1 = aArr[fnum];
a2 = aArr[fnum+1];
a3 = aArr[fnum+2];
}
rightnum = rArr[fnum];
madeQuests++;
break;
}
}
makeQuestionWindow();
}
function qRequested(req){
// Frage wurde beantwortet
if (req){
// Frage wurde richtig beantwortet
document.richtig.play(false);
score(punkte);
}else {
document.falsch.play(false);
}
lock = false;
parent.frames[2].unlock();
}