PBrowser){ReadingText=ResolveAllURLs(ReadingText);} [/Reading]*/ var NavBar=''; NavBar+='
'; NavBar+=''; NavBar+=''; NavBar+=''; NavBar+=''; NavBar+='
'; if (is.CRAPBrowser){NavBar = ResolveAllURLs(NavBar);} var TitleCode = ''; TitleCode += '' + ExerciseTitle + '
'; TitleCode += '' + ExerciseSubtitle + '
'; TitleCode += '
'; var MemoryOpener = '

'; MemoryOpener += ''; var MemoryGridOpener = ''; var MemoryGridCloser = ''; var MemoryRow = ''; var MemoryCloser = '
'; MemoryRow += '[Content]
'; var MatchButton = '
'; var cardno = 0; var Pairs = 0; var Exercise = ''; function GoBack(){ var BackSkip = history.length - PreviousPage; if (BackSkip > 0){ history.go((BackSkip+1)*-1); } else{ parent.history.back(); } } function Highlight(id){ if (M[id][1][1] == 0){ BottomFrame.document.getElementById(id).style.backgroundColor = '#0000ff'; } } function Unhighlight(id){ if (M[id][1][1] == 0){ BottomFrame.document.getElementById(id).style.backgroundColor = ''; } else if (M[id][1][1] == 1){ BottomFrame.document.getElementById(id).style.backgroundColor = '#ffffff'; } } function ShowLogo(){ if (JMemory == true){ for (var m=0; m− ' + D[s][0] + '
'; } Solution = Output; DisplayExercise(Solution); } function Shuffle(InArray){ Temp = new Array(); var Len = InArray.length; var j = Len; for (var i=0; i0){ OutString += ''; OutString += ''; OutString += Feedback; OutString += '' } OutString += ''; //Write it to the frame TopFrame.document.clear(); TopFrame.document.open(); TopFrame.document.write(OutString); TopFrame.document.close(); } function StartUp(){ for (var i=0; iMemory', Memory); Memory = ReplaceStuff('[MemoryNum]', m, Memory); } Exercise += Memory; Exercise = MemoryOpener + Exercise + MemoryCloser + MatchButton; } function CheckCard(id){ BottomFrame.document.getElementById(id).innerHTML = M[id][0]; var Output = ''; if(cardno==0){ cardno++; clickarray[0][0]=M[id][1][0]; clickarray[0][1]=id; }else{ clickarray[1][0]=M[id][1][0]; clickarray[1][1]=id; cardno=0; if (clickarray[0][1] == clickarray[1][1]){ clickarray[0][0] = 0; clickarray[1][0] = 0; clickarray[0][1] = 0; clickarray[1][1] = 0; setTimeout('ShowLogo()', 1000); } else{ if (clickarray[0][0]==clickarray[1][0]){ clickarray[0][0] = 0; clickarray[1][0] = 0; if ((M[(clickarray[0][1])][1][1] == 0)||(M[(clickarray[1][1])][1][1] == 0)){ Pairs++; M[(clickarray[0][1])][1][1] = 1; M[(clickarray[1][1])][1][1] = 1; } BottomFrame.document.getElementById(clickarray[0][1]).style.backgroundColor='#ffffff'; BottomFrame.document.getElementById(clickarray[1][1]).style.backgroundColor='#ffffff'; clickarray[0][1] = 0; clickarray[1][1] = 0; Output += CorrectIndicator + Pairs; } else{ if ((M[(clickarray[0][1])][1][1] == 1)||(M[(clickarray[1][1])][1][1] == 1)){} else{ clickarray[0][0] = 0; clickarray[1][0] = 0; setTimeout('ShowLogo()', 1000); clickarray[0][1] = 0; clickarray[1][1] = 0; Output += IncorrectIndicator; Output += '
' + CorrectIndicator + Pairs; } } } } if (Output != ''){ WriteFeedback(Output); } else{ Output += CorrectIndicator + Pairs; WriteFeedback(Output); } } clickarray = new Array(); clickarray[0] = new Array(); clickarray[0][0] = 0; clickarray[0][1] = 0; clickarray[1] = new Array(); clickarray[1][0] = 0; clickarray[1][1] = 0; M = new Array(); //I = new Array(); //[strItemArray] F = new Array(); F[0] = new Array(); F[0][0]='Cookies01.JPG'; F[0][1] = 1; F[1] = new Array(); F[1][0]='Dance01.JPG'; F[1][1] = 2; F[2] = new Array(); F[2][0]='Dive01.GIF'; F[2][1] = 3; F[3] = new Array(); F[3][0]='Draw01.GIF'; F[3][1] = 4; F[4] = new Array(); F[4][0]='Drive01.JPG'; F[4][1] = 5; F[5] = new Array(); F[5][0]='Fax01.JPG'; F[5][1] = 6; F[6] = new Array(); F[6][0]='Food01.JPG'; F[6][1] = 7; F[7] = new Array(); F[7][0]='Frisbee01.JPG'; F[7][1] = 8; D = new Array(); D[0] = new Array(); D[0][0]='Cookies'; D[0][1] = 1; D[0][2] = 0; D[1] = new Array(); D[1][0]='Dance'; D[1][1] = 2; D[1][2] = 0; D[2] = new Array(); D[2][0]='Dive'; D[2][1] = 3; D[2][2] = 0; D[3] = new Array(); D[3][0]='Draw'; D[3][1] = 4; D[3][2] = 0; D[4] = new Array(); D[4][0]='Drive'; D[4][1] = 5; D[4][2] = 0; D[5] = new Array(); D[5][0]='Fax'; D[5][1] = 6; D[5][2] = 0; D[6] = new Array(); D[6][0]='Food'; D[6][1] = 7; D[6][2] = 0; D[7] = new Array(); D[7][0]='Frisbee'; D[7][1] = 8; D[7][2] = 0; 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; } function DisplayExercise(StuffToDisplay){ //Build the output string var OutString = ''; OutString += ''; OutString += ''; OutString += '
'; OutString += TitleCode; OutString += ''; OutString += NavBar; OutString += '
'; OutString += ''; OutString += StuffToDisplay; 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(); } /*[Reading] function ShowReading(){ if (ReadingFrame != null){ if (ReadingURL.length > 0){ ReadingFrame.location.href=ReadingURL; } else{ ReadingFrame.document.clear(); ReadingFrame.document.open(); ReadingFrame.document.write(ReadingText); ReadingFrame.document.close(); } } } [/Reading] [inclTimer] //Reading text/timer code var min var sec var ShowReadingAgain = '[strShowReadingAgain]'; function DownTime(mm,ss){ min = mm; sec = ss; if (sec==0) { sec = 60; min--; } sec--; if (sec<10){ sec="0" + sec; } if (TimerFrame.document.TimerForm.face == null){ return; } TimerFrame.document.TimerForm.face.value= min+":"+sec; if ((min==0) && (sec==0)){ TimesUp() } else{ setTimeout('DownTime(min,sec)',1000) } } function StartReading(){ Stuff='[strRemainingTime]'; Stuff+=' '; WriteToTimer(Stuff); ShowReading(); timeoutID=setTimeout('DownTime([TimerValue],0)',1000); } function TimesUp() { var Stuff=''; if (ShowReadingAgain.length > 0) { Stuff+=''; WriteToTimer(Stuff); } WriteToReading('[strTimesUp]'); } function WriteToReading(Stuff) { if (is.CRAPBrowser){Stuff=ResolveAllURLs(Stuff);} ReadingFrame.document.clear(); ReadingFrame.document.open(); ReadingFrame.document.writeln (''); ReadingFrame.document.writeln (''); ReadingFrame.document.writeln ('
'); ReadingFrame.document.writeln ('
') ReadingFrame.document.writeln (''); ReadingFrame.document.writeln (Stuff); ReadingFrame.document.writeln ('
'); ReadingFrame.document.close(); } function WriteToTimer(Stuff){ if (is.CRAPBrowser){Stuff=ResolveAllURLs(Stuff);} TimerFrame.document.clear(); TimerFrame.document.open(); TimerFrame.document.writeln (''); TimerFrame.document.writeln (''); TimerFrame.document.writeln ('
'); TimerFrame.document.writeln ('
') TimerFrame.document.writeln (''); TimerFrame.document.writeln (Stuff); TimerFrame.document.writeln ('
'); TimerFrame.document.close(); } [/inclTimer]*/ function Blank(){ return '©Half-Baked Software. Loading...
© Copyright Michael Rottmeier'; } //--> //]]> ------_NextPart_000_0024_01C2DF05.BCE94570 Content-Type: text/html; name"Upr0106b.htm" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename"Upr0106b.htm" Lesson 1.6, Upper