Site hosted by Angelfire.com: Build your free website today!
'; OutString += '
'; OutString += NavBar; if (Feedback.length>0){ OutString += '' } OutString += '
'; OutString += ''; OutString += Feedback; OutString += '
'; 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 += Buttons1; OutString += BuiltExercise; OutString += Buttons2; OutString += BuiltClues; OutString += NavBar; OutString += '
'; 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 BuildClue(ClueNum,x,y,Across){ var OutString = ''; if (Across == true){ if (ClueNum >= A.length){ return ''; } if (A[ClueNum] == null){ return ''; } OutString = ClueNum + '. ' + A[ClueNum]; OutString += GetAnswer; OutString = ReplaceStuff('[BoxName]', 'BA'+ClueNum, OutString); //Find out how long the answer is AnsLength = 0; i = x; j = y; while (j= D.length){ return ''; } if (D[ClueNum] == null){ return ''; } OutString = ClueNum + '. ' + D[ClueNum]; OutString += GetAnswer; OutString = ReplaceStuff('[BoxName]', 'BD'+ClueNum, OutString); //Find out how long the answer is AnsLength = 0; i = x; j = y; while (i 0){ AcrossClues += BuildClue(C[i][j], i, j, true); DownClues += BuildClue(C[i][j], i, j, false); } } } OutString += ''; OutString += CluesAcross + '

' + AcrossClues + '

'; OutString += ''; OutString += CluesDown + '

' + DownClues + '
' OutString += ''; BuiltClues = OutString; } function ShowClue(ClueNum,x,y){ var OutString = ''; var AnsLength = 0; var i; var j; CurrBoxElement = ClueNum; if (A[ClueNum] != null){ OutString = OutString + 'Across: ' + ClueNum + '. ' + A[ClueNum]; OutString += GetAnswer; OutString = ReplaceStuff('[BoxName]', 'BA'+ClueNum, OutString); //Find out how long the answer is AnsLength = 0; i = x; j = y; while (j 0){ OutString += '
'; } OutString = OutString + 'Down: ' + ClueNum + '. ' + D[ClueNum]; OutString += GetAnswer; OutString = ReplaceStuff('[BoxName]', 'BD'+ClueNum, OutString); //Find out how long the answer is AnsLength = 0; i = x; j = y; 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(); L[0] = new Array('','','Q','U','A','R','T','E','R','','F','','',''); L[1] = new Array('','','','','','','I','','','','O','','',''); L[2] = new Array('','','','','F','','M','E','A','S','U','R','E',''); L[3] = new Array('','','V','A','L','U','E','','','','R','','',''); L[4] = new Array('','','','','A','','','S','','A','','','',''); L[5] = new Array('','R','','','G','','K','I','N','D','','','',''); L[6] = new Array('B','E','A','T','S','','','X','','D','','H','','W'); L[7] = new Array('','S','','','','C','U','T','','S','L','A','S','H'); L[8] = new Array('','T','W','O','','O','','E','','','','L','','O'); L[9] = new Array('','','','N','U','M','B','E','R','S','','F','','L'); L[10] = new Array('','','','E','','M','','N','','','','','','E'); L[11] = new Array('','','','','D','O','T','T','E','D','','','',''); L[12] = new Array('','','','','','N','','H','','','','','',''); C = new Array(); C[0] = new Array(0,0,1,0,0,0,2,0,0,0,3,0,0,0); C[1] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[2] = new Array(0,0,0,0,4,0,5,0,0,0,0,0,0,0); C[3] = new Array(0,0,6,0,0,0,0,0,0,0,0,0,0,0); C[4] = new Array(0,0,0,0,0,0,0,7,0,8,0,0,0,0); C[5] = new Array(0,9,0,0,0,0,10,0,0,0,0,0,0,0); C[6] = new Array(11,0,0,0,0,0,0,0,0,0,0,12,0,13); C[7] = new Array(0,0,0,0,0,14,0,0,0,15,0,0,0,0); C[8] = new Array(0,16,0,17,0,0,0,0,0,0,0,0,0,0); C[9] = new Array(0,0,0,18,0,0,0,0,0,0,0,0,0,0); C[10] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[11] = new Array(0,0,0,0,19,0,0,0,0,0,0,0,0,0); C[12] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0); G = new Array(); G[0] = new Array('','','','','','','','','','','','','',''); G[1] = new Array('','','','','','','','','','','','','',''); G[2] = new Array('','','','','','','','','','','','','',''); G[3] = new Array('','','','','','','','','','','','','',''); G[4] = new Array('','','','','','','','','','','','','',''); G[5] = new Array('','','','','','','','','','','','','',''); G[6] = new Array('','','','','','','','','','','','','',''); G[7] = new Array('','','','','','','','','','','','','',''); G[8] = new Array('','','','','','','','','','','','','',''); G[9] = new Array('','','','','','','','','','','','','',''); G[10] = new Array('','','','','','','','','','','','','',''); G[11] = new Array('','','','','','','','','','','','','',''); G[12] = new Array('','','','','','','','','','','','','',''); A = new Array(); A[1] = 'In 4/4 time the ___ note gets a beat.'; A[5] = 'In "cut time" there are two beats in a ___.'; A[6] = 'dotted quarter notes and dotted quarter rests have the same time ___.'; A[10] = 'The bottom number in a time signature tells us the ___ of note that gets a beat.'; A[11] = 'The top note of a time signature tells how many of these there are in a measure.'; A[14] = 'The symbols for 2/2 and ___ time look different yet mean the same.'; A[15] = 'To draw a symbol for cut time, first draw a "C" then add a vertical ___. '; A[16] = 'In 4/4 time the half note gets ___ beats.'; A[18] = 'A time signature can be written with these symbols.'; A[19] = 'In 4/4/ time a ___ quarter note gets one and a half beats.'; D = new Array(); D[2] = 'Another name for 4/4 is "common ___".'; D[3] = 'In "common time" there are ___ beats in a measure.'; D[4] = 'A sixteenth note looks like a quarter note with two ___.'; D[7] = 'In 4/4/ time there are four ___ notes in a beat.'; D[8] = 'A dot after a note ___ half of the value of the note that it follows.'; D[9] = 'A symbol that has a time value but no sound.'; D[12] = 'In "cut time" a quarter note gets one ___ beat. '; D[13] = 'In 4/4 time the ___ note gets 4 beats.'; D[14] = 'The symbol for "___ time" uses the letter C.'; D[17] = 'In cut tiome the half note gets ___ beat.'; function StartUp(){ BuildExercise(); BuildCompleteClues(); WriteFeedback(Instructions); DisplayExercise(); } function CheckAnswers(){ var AllCorrect = true; var TotLetters = 0; var CorrectLetters = 0; //Check each letter for (var i=0; i'; } Output += YourScoreIs + ' ' + Score + '%.
'; if (AllCorrect == false){ Output += '
' + Incorrect; Penalties++; } BuildExercise(); WriteFeedback(Output); DisplayExercise(); } function DoNothing(){} function Blank(){ return '©Half-Baked Software. Loading...'; } //--> //]]>