hi guys …
i m currently working on your quiz that is posted on
http://www.sephiroth.it/file_detail.php?id=54
there is just 1 question, how do u change the answers from switching
places? … i mean right now i have them all in … a,b,c and d but it
is coming out randomly … how do i get it to display in order … ?
no random display of answers. but the questions coming out in random is just fine.
thanx in advance guys…
the code actually goes like this :
// Building random answers
function creaNuovoArray(){
delete tempRis;
tempRis = new Array();
}
Object.prototype.nextRisposta = function(){
ranAns = random(domande[ranQuestion][2].length)
for(var i = 0; i < domande[ranQuestion][2].length; i++){
if(ranAns == tempRis*){
var prosegui = false;
nextRisposta();
break;
}
var prosegui = true;
}
if(prosegui){
tempRis.push(ranAns);
return ranAns;
}
}