'; ResultForm += ''; ResultForm += ''; ResultForm += ''; ResultForm += '\''+Morefields+'\''; ResultForm += '
Hosted by www.Geocities.ws

'; // -------------------------------- end of changes ------------------------- // var NavBar=''; // ------- navigationsleiste fuer php-ergebnisse änderung beim index ------- // NavBar+='
'; NavBar+=''; NavBar+=''; NavBar+=''; NavBar+='
'; if (is.CRAPBrowser){NavBar=ResolveAllURLs(NavBar);} // -------------------------------- end of changes ------------------------- // var TitleCode = ''; TitleCode += '' + ExerciseTitle + '
'; TitleCode += '' + ExerciseSubtitle + '
'; TitleCode += '
'; var ClozeOpener = ''; ClozeOpener += ''; var Buttons = '
'; ClozeOpener += '
'; var ClozeCloser = '
'; Buttons += '
'; Buttons += ''; Buttons += '
'; var ClueButton = ''; function GoBack(){ var BackSkip = history.length - PreviousPage; if (BackSkip > 0){ history.go((BackSkip+1)*-1); } else{ parent.history.back(); } } function BuildExercise(){ var OutString = ''; var ClozeStuff = ''; for (var i=0; i'; } else{ Gap = ''; Gap = ReplaceStuff('[strGapName]', 'Gap' + i, Gap); Gap = ReplaceStuff('[gaptitle]', ' ', Gap); ClozeStuff += Gap; //Create and add the clue button if (I[i][2].length > 0){ Btn = ReplaceStuff('[strItemNum]', i + '', ClueButton); ClozeStuff += Btn; } } } //Add the last bit if (Text.length > I.length){ ClozeStuff += Text[Text.length-1]; } //Put the final pieces together OutString = ClozeOpener + ClozeStuff + ClozeCloser; if (ExFinished==false){ OutString += Buttons; } BuiltCloze = OutString; } function BuildArrays(){ for (var i=0; i '; OutString += '
'; OutString += NavBar; if (Feedback.length>0){ OutString += '' } OutString += '
'; OutString += ''; OutString += Feedback; OutString += '
Hosted by www.Geocities.ws

'; if (is.CRAPBrowser){OutString=ResolveAllURLs(OutString);} //Write it to the frame TopFrame.document.clear(); TopFrame.document.open(); TopFrame.document.write(OutString); TopFrame.document.close(); } function DisplayExercise(){ //Build the output string var OutString = ''; OutString += ''; OutString += '
'; OutString += '
'; OutString += TitleCode; OutString += ''; //-----Modified by Valérie Maret: strip the bottom button---// //OutString += NavBar; //-----End of changes-----// OutString += '
'; OutString += ''; OutString += BuiltCloze; OutString += '
Hosted by www.Geocities.ws

'; if (is.CRAPBrowser){OutString=ResolveAllURLs(OutString);} //Write it to the frame BottomFrame.document.clear(); BottomFrame.document.open(); BottomFrame.document.write(OutString); BottomFrame.document.close(); } function ShowClue(ItemNum){ WriteFeedback(I[ItemNum][2]); } function ReplaceStuff(Token, Replacement, InString){ var i = InString.indexOf(Token); var FirstBit = ''; var LastBit = ''; while (i>-1){ FirstBit = InString.substring(0, i); LastBit = InString.substring(i + Token.length, InString.length); InString = FirstBit + Replacement + LastBit; i = InString.indexOf(Token); } return InString; } L = new Array(); G = new Array(); I = new Array(); I[0] = new Array(); I[0][1] = new Array(); I[0][1][0] = new Array(); I[0][1][0][0]='Pardon'; I[0][2]=''; I[1] = new Array(); I[1][1] = new Array(); I[1][1][0] = new Array(); I[1][1][0][0]='Excuse me'; I[1][1][1] = new Array(); I[1][1][1][0]='Sorry,'; I[1][2]=''; I[2] = new Array(); I[2][1] = new Array(); I[2][1][0] = new Array(); I[2][1][0][0]='I\'m sorry'; I[2][1][1] = new Array(); I[2][1][1][0]='Sorry'; I[2][1][2] = new Array(); I[2][1][2][0]='I am sorry'; I[2][1][3] = new Array(); I[2][1][3][0]='So sorry'; I[2][2]=''; I[3] = new Array(); I[3][1] = new Array(); I[3][1][0] = new Array(); I[3][1][0][0]='Excuse me'; I[3][1][1] = new Array(); I[3][1][1][0]='Sorry'; I[3][2]=''; I[4] = new Array(); I[4][1] = new Array(); I[4][1][0] = new Array(); I[4][1][0][0]='Pardon'; I[4][2]=''; I[5] = new Array(); I[5][1] = new Array(); I[5][1][0] = new Array(); I[5][1][0][0]='I\'m sorry'; I[5][1][1] = new Array(); I[5][1][1][0]='sorry'; I[5][1][2] = new Array(); I[5][1][2][0]='so sorry'; I[5][1][3] = new Array(); I[5][1][3][0]='I am sorry'; I[5][2]=''; Text = new Array(); Text[0]='1. "Hi, I\'m Eric Pontoppidan." - "'; Text[1]='?
2. "'; Text[2]=', is this your biro?
3. "you\'re late again."-" '; Text[3]='."
4. "'; Text[4]=', is this your list?"
5. "Hamish lives in Kircudbrightshire."-"'; Text[5]='?"
6."Hey, that\'s my Coke!"-"Oh, yes, '; Text[6]='." '; State = new Array(); function StartUp(){ State.length = 0; for (var i=0; i' + YourScoreIs + ' ' + Score + ' %'; ///--------Modified by Valerie Maret 2003 ----------------/// //Select a sound file per random and play it once //soundfile(); //Output += ''; //Create Button to send Results and play Sound //Output += '
'; //Change Part for IndexButton so that it disappears. NavBar=''; NavBar+=''; NavBar+=''; //NavBar+=''; NavBar+=''; ///--------End of changes ----------------/// } else{ Output = Incorrect + '
' + YourScoreIs + ' ' + Score + ' %'; } // compile output WriteFeedback(Output); BuildExercise(); DisplayExercise(); ///--------Modified by Valerie Maret 2003 ----------------// //This part is no longer interesting for us /*if (ExFinished==true){ setTimeout('SendResults(' + Score + ')', 50); } */ //End of changes--------// } function CalculateScore(){ var ThisScore = 0; for (var x=0; x
© Half-Baked Software.
© Michael Rottmeier.
Loading...
Hosted by www.Geocities.ws

'; } //--> //]]>
Hosted by www.Geocities.ws

1