-->
'; ResultForm += ''; ResultForm += ''; ResultForm += ''; ResultForm += ''; ResultForm += ''; ResultForm += ''; ResultForm += ''; ResultForm += ''; ResultForm += ''; ResultForm += ''; ResultForm += ''; ResultForm += '
'; //Fixed and draggable card arrays FC = new Array(); DC = new Array(); function doDrag(e) { if (CurrDrag == -1) {return}; if (is.ie){var Ev = window.event}else{var Ev = e} var difX = Ev.clientX-window.lastX; var difY = Ev.clientY-window.lastY; var newX = DC[CurrDrag].GetL()+difX; var newY = DC[CurrDrag].GetT()+difY; DC[CurrDrag].SetL(newX); DC[CurrDrag].SetT(newY); window.lastX = Ev.clientX; window.lastY = Ev.clientY; return true; } function beginDrag(e, DragNum) { CurrDrag = DragNum; if (is.ie){ var Ev = window.event; document.onmousemove=doDrag; document.onmouseup=endDrag; } else{ var Ev = e; window.onmousemove=doDrag; window.onmouseup=endDrag; } DC[CurrDrag].Highlight(); topZ++; DC[CurrDrag].css.zIndex = topZ; window.lastX=Ev.clientX; window.lastY=Ev.clientY; return true; } function endDrag(e) { if (CurrDrag == -1) {return}; DC[CurrDrag].Unhighlight(); if (is.ie){document.onmousemove=null}else{window.onmousemove=null;} onEndDrag(); CurrDrag = -1; return true; } function onEndDrag(){ //Is it dropped on any of the fixed cards? var Docked = false; var DropTarget = DroppedOnFixed(CurrDrag); if (DropTarget > -1){ //If so, send home any card that is currently docked there for (var i=0; i OverlapArea){ OverlapArea = Temp; Result = i; } } return Result; } function StartUp(){ //Try to get user name UserName = prompt('Please enter your name and ID number',''); UserName += ''; if ((UserName.substring(0,4) == 'null')||(UserName.length < 1)){ UserName = prompt('Please enter your name and ID number',''); UserName += ''; if ((UserName.substring(0,4) == 'null')||(UserName.length < 1)){ window.location = PreviousPage; } } //Calculate page dimensions and positions pg = new PageDim(); DivWidth = Math.floor((pg.W*4)/5); DragWidth = Math.floor((DivWidth*3)/10); LeftColPos = Math.floor(pg.W/10); RightColPos = pg.W - (DragWidth + LeftColPos); DragTop = parseInt(document.getElementById('TitleDiv').offsetHeight) + 10; //Position the feedback div var CurrDiv = document.getElementById('FeedbackDiv'); CurrDiv.style.top = DragTop + 5 + 'px'; CurrDiv.style.left = Math.floor((pg.W)/3) + 'px'; CurrDiv.style.width = Math.floor(pg.W/3) + 'px'; CurrDiv.style.display = 'none'; //Shuffle the items on the right D = Shuffle(D); var CurrTop = DragTop; var TempInt = 0; var DropHome = 0; var Widest = 0; for (var i=0; i'; //required for Navigator rendering bug with images if (FC[i].GetW() > Widest){ Widest = FC[i].GetW(); } } if (Widest > DragWidth){Widest = DragWidth;} CurrTop = DragTop; DragWidth = Math.floor((DivWidth-Widest)/2) - 24; RightColPos = DivWidth + LeftColPos - (DragWidth + 14); var Highest = 0; var WidestRight = 0; for (i=0; i'; //required for Navigator rendering bug with images if (DC[i].GetW() > DragWidth){DC[i].SetW(DragWidth);} DC[i].css.cursor = 'move'; DC[i].css.backgroundColor = '#ffffff'; DC[i].css.color = '#000000'; TempInt = DC[i].GetH(); if (TempInt > Highest){Highest = TempInt;} TempInt = DC[i].GetW(); if (TempInt > WidestRight){WidestRight = TempInt;} } var HeightToSet = Highest; if (is.ns||is.ie5mac){HeightToSet -= 12;} var WidthToSet = WidestRight; if (is.ns||is.ie5mac){WidthToSet -= 12;} for (i=0; i 0){ DC[i].tag = D[i][1]; D[i][2] = D[i][1]; var TopChange = 0; var TargetLeft = FC[D[i][2]-1].GetR() + 5; var TargetTop = FC[D[i][1]-1].GetT(); if (TargetTop < DC[i].GetT()){ TopChange = -1; } else { if (TargetTop > DC[i].GetT()){ TopChange = 1; } } Slide(i, TargetLeft, TargetTop, TopChange); } } } function Slide(MoverNum, TargL, TargT, TopChange){ var TempInt = DC[MoverNum].GetL(); if (TempInt > TargL){ DC[MoverNum].SetL(TempInt - 5); } TempInt = DC[MoverNum].GetT(); if (TempInt != TargT){ DC[MoverNum].SetT(TempInt + TopChange); } if ((DC[MoverNum].GetL() > TargL)||(DC[MoverNum].GetT() != TargT)){ setTimeout('Slide('+MoverNum+','+TargL+','+TargT+','+TopChange+')', 1); } else{ DC[MoverNum].SetL(TargL); } } F = new Array(); F[0] = new Array() F[0][0]='ADULT'; F[0][1] = 1; F[1] = new Array() F[1][0]='CANNIBAL'; F[1][1] = 2; F[2] = new Array() F[2][0]='HANDKERCHIEF'; F[2][1] = 3; F[3] = new Array() F[3][0]='INFLATION'; F[3][1] = 4; F[4] = new Array() F[4][0]='RAISIN'; F[4][1] = 5; F[5] = new Array() F[5][0]='SECRET'; F[5][1] = 6; F[6] = new Array() F[6][0]='YAWN'; F[6][1] = 7; F[7] = new Array() F[7][0]='TOMORROW'; F[7][1] = 8; F[8] = new Array() F[8][0]='SKELETON'; F[8][1] = 9; D = new Array(); D[0] = new Array() D[0][0]='A person who has stopped growing at both ends and is now growing in the middle'; D[0][1] = 1; D[0][2] = 0; D[1] = new Array() D[1][0]='Someone who is fed up with people'; D[1][1] = 2; D[1][2] = 0; D[2] = new Array() D[2][0]='Cold Storage'; D[2][1] = 3; D[2][2] = 0; D[3] = new Array() D[3][0]='Cutting money in half without damaging the paper'; D[3][1] = 4; D[3][2] = 0; D[4] = new Array() D[4][0]='Grape with a sunburn'; D[4][1] = 5; D[4][2] = 0; D[5] = new Array() D[5][0]='Something you tell to one person at a time'; D[5][1] = 6; D[5][2] = 0; D[6] = new Array() D[6][0]='An honest opinion openly expressed'; D[6][1] = 7; D[6][2] = 0; D[7] = new Array() D[7][0]='One of the greatest labor-saving mechanisms of today'; D[7][1] = 8; D[7][2] = 1; D[8] = new Array() D[8][0]='A bunch of bones with the person scraped off'; D[8][1] = 9; D[8][2] = 1; function Shuffle(InArray){ Temp = new Array(); var Len = InArray.length; var j = Len; for (var i=0; i 0)){ TotalCorrect++; } else{ DC[i].GoHome(); } } Score = Math.floor((100*(TotalCorrect-Penalties))/F.length); if (TotalCorrect == F.length) { Response = YourScoreIs + ' ' + Score + '%.
' + CorrectResponse; WriteFeedback(Response); setTimeout('SendResults(' + Score + ')', 50); } else { Response = IncorrectResponse + '
' + YourScoreIs + ' ' + Score + '%.'; WriteFeedback(Response); Penalties++; // Penalty for inaccurate check } } function WriteFeedback(Feedback){ var Output = Feedback + '

'; Output += '
//]]>

Definitions 1

Matching exercise. READ ALL THE TEXTS BEFORE DECIDING...
Match the words on the left with the definitions on the right.