Is this correct to load random xml file with jquery ?
var randomly= new Array ();
randomly[0] = "questions0.xml";
randomly[1] = "questions1.xml";
randomly[2] = "questions2.xml";
var size = randomly.length
var x = Math.floor(size*Math.random())
loadXML(randomly[x]);
Aucun commentaire:
Enregistrer un commentaire