'; //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';
D[0][1]='1';
D[0][2]='0';
D[1] = new Array();
D[1][0]='';
D[1][1]='2';
D[1][2]='0';
D[2] = new Array();
D[2][0]='';
D[2][1]='3';
D[2][2]='0';
D[3] = new Array();
D[3][0]='';
D[3][1]='4';
D[3][2]='0';
D[4] = new Array();
D[4][0]='';
D[4][1]='5';
D[4][2]='0';
D[5] = new Array();
D[5][0]='';
D[5][1]='6';
D[5][2]='0';
D[6] = new Array();
D[6][0]='';
D[6][1]='7';
D[6][2]='0';
D[7] = new Array();
D[7][0]='';
D[7][1]='8';
D[7][2]='0';
D[8] = new Array();
D[8][0]='';
D[8][1]='9';
D[8][2]='0';
D[9] = new Array();
D[9][0]='';
D[9][1]='10';
D[9][2]='0';
D[10] = new Array();
D[10][0]='';
D[10][1]='11';
D[10][2]='0';
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);
}
else {
Response = IncorrectResponse + '
' + YourScoreIs + ' ' + Score + '%.';
WriteFeedback(Response);
Penalties++; // Penalty for inaccurate check
}
}
function WriteFeedback(Feedback){
var Output = Feedback + '
';
Output += '';
var FDiv = document.getElementById('FeedbackDiv');
FDiv.innerHTML = Output;
//Calculate and set its left setting
// FDiv.style.left = ((Math.floor(pg.W/2))-(Math.floor(GetRealWidth('FeedbackDiv')/2))) +'px';
topZ++;
FDiv.style.zIndex = topZ;
//Add a border to the feedback div
document.getElementById('FeedbackDiv').style.borderStyle = 'solid';
FDiv.style.display='';
}
function HideFeedback(){
var FDiv = document.getElementById('FeedbackDiv');
FDiv.innerHTML = '';
FDiv.style.display='none';
}
//-->
//]]>
Who was who?
Matching exercise
Can you match the pictures with their names?