Hi Dave,
Unfortunately, the person who originally designed the program has left and I have absolutely no idea if the program was designed from scratch (which I think not) or if a program was simply downloaded online (inquisit or other) and categories, attributes, trial numbers, etc., were simply replaced. Below is a partial script of one block of the SC-IAT I have if that'll give any clue as to which program it possibly came from. I have the SC-IAT Inquisit 4 script and mine's look nothing like it so that's why I don't think it came from Inquisit.
Thoughts?
Thanks,
Kaydee
PARTIAL SCRIPT:
<script
type="text/javascript">
shuffle =
function(o){ //v1.0
for(var j,
x, i = o.length; i; j = parseInt(Math.random() * i), x = o[--i], o[i] = o[j],
o[j] = x);
return o;
};
document.onkeyup
= KeyCheck;
var
input = new Array();
var
correct = new Array();
var neworder
= shuffle([0, 1, 2, 3, 4, 5, 6, 7, 8,
9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41]);
var t =
0;var c = 0;var d;var running = 0;
input[0]="<b
style='color:chartreuse'>Me</b>"; correct[0]=65;
input[1]="<b
style='color:chartreuse'>I</b>"; correct[1]=65;
input[2]="<b
style='color:chartreuse'>Myself</b>"; correct[2]=65;
input[3]="<b
style='color:chartreuse'>My</b>"; correct[3]=65;
input[4]="<b
style='color:chartreuse'>Mine</b>"; correct[4]=65;
input[5]="<b
style='color:chartreuse'>Self</b>"; correct[5]=65;
input[6]="<b
style='color:chartreuse'>Me</b>"; correct[6]=65;
input[7]="<b
style='color:chartreuse'>Fork"; correct[7]=76;
input[8]="<b
style='color:chartreuse'>Turtle"; correct[8]=76;
input[9]="<b
style='color:chartreuse'>Shirt"; correct[9]=76;
input[10]="<b
style='color:chartreuse'>Truck"; correct[10]=76;
input[11]="<b
style='color:chartreuse'>Phone";
correct[11]=76;
input[12]="<b
style='color:chartreuse'>Sandwich"; correct[12]=76;
input[13]="<b
style='color:chartreuse'>Chair"; correct[13]=76;
input[14]="Caring"; correct[14]=65;
input[15]="Kind-Hearted"; correct[15]=65;
input[16]="Tender-Hearted"; correct[16]=65;
input[17]="Sympathetic"; correct[17]=65;
input[18]="Considerate"; correct[18]=65;
input[19]="Empathetic"; correct[19]=65;
input[20]="Helpful"; correct[20]=65;
input[21]="<b
style='color:chartreuse'>Fork"; correct[21]=76;
input[22]="<b
style='color:chartreuse'>Turtle"; correct[22]=76;
input[23]="<b
style='color:chartreuse'>Shirt"; correct[23]=76;
input[24]="<b
style='color:chartreuse'>Truck"; correct[24]=76;
input[25]="<b
style='color:chartreuse'>Phone"; correct[25]=76;
input[26]="<b
style='color:chartreuse'>Sandwich"; correct[26]=76;
input[27]="<b
style='color:chartreuse'>Chair"; correct[27]=76;
input[28]="Caring"; correct[28]=65;
input[29]="Kind-Hearted"; correct[29]=65;
input[30]="Tender-Hearted";
correct[30]=65;
input[31]="Sympathetic"; correct[31]=65;
input[32]="Considerate"; correct[32]=65;
input[33]="Empathetic"; correct[33]=65;
input[34]="Helpful"; correct[34]=65;
input[35]="<b
style='color:chartreuse'>Me</b>"; correct[35]=65;
input[36]="<b
style='color:chartreuse'>I</b>"; correct[36]=65;
input[37]="<b
style='color:chartreuse'>Myself</b>"; correct[37]=65;
input[38]="<b
style='color:chartreuse'>My</b>"; correct[38]=65;
input[39]="<b
style='color:chartreuse'>Mine</b>"; correct[39]=65;
input[40]="<b
style='color:chartreuse'>Self</b>"; correct[40]=65;
input[41]="<b
style='color:chartreuse'>Me</b>"; correct[41]=65;
function
start_it() {
if (c<32) {
var day = new Date(); trialstart =
day.getTime();
document.getElementById("Message").innerHTML =
"<br>" + input[neworder[c]];
}
else {
clearInterval(t)
document.getElementById("Message").innerHTML =
"<br>You may now proceed to the next section";
document.getElementById("QR~QID6").value =
document.getElementById("QR~QID6").value + "END";
}
}
function
KeyCheck(e) {
var KeyID = (window.event) ? event.keyCode :
e.keyCode;
if (c<32) {
d=neworder[c]; if (d<=9)
{d="0"+d;}
if(KeyID == 65) {
var day = new Date(); trialend =
day.getTime();
rt = trialend - trialstart;
if(correct[neworder[c]] == 65){
document.getElementById("QR~QID6").value
= document.getElementById("QR~QID6").value + d + "C" + rt +
",";
document.getElementById("Message").innerHTML =
"<br>+";
c=c+1;
t = setTimeout('start_it();',500);
}
else{
document.getElementById("QR~QID6").value
= document.getElementById("QR~QID6").value + d + "X" + rt +
",";
document.getElementById("Message").innerHTML = "<b
style='color:red;font-size:80px'>X</b>";
c=c+1;
t =
setTimeout('document.getElementById("Message").innerHTML =
"<br>+";',500);
t = setTimeout('start_it();',700);
}
}
if(KeyID == 76) {
var day = new Date(); trialend =
day.getTime();
rt = trialend - trialstart;
if(correct[neworder[c]] == 76){
document.getElementById("QR~QID6").value =
document.getElementById("QR~QID6").value + d + "C" + rt +
",";
document.getElementById("Message").innerHTML =
"<br>+";
c=c+1;
t = setTimeout('start_it();',500);
}
else{
document.getElementById("QR~QID6").value =
document.getElementById("QR~QID6").value + d + "X" + rt +
",";
document.getElementById("Message").innerHTML = "<b
style='color:red;font-size:80px'>X</b>";
c=c+1;
t = setTimeout('document.getElementById("Message").innerHTML
= "<br>+";',500);
t = setTimeout('start_it();',700);
}
}
if(KeyID == 32) {
if (running == 0) {
document.getElementById('instructions').style.display =
"none";
running = 1;
start_it();