Ciao a tutti, sono alle prime armi e volevo sapere come faccio a dare a questo array, i valori (f1, f2, f3 etc etc) provenienti da un file txt esterno ( variabili.txt ):
var img = new Array();
img[0] = "";
img[1] = "";
img[2] = loadVariables("variabili.txt","f1");???????
img[3] = "";
img[4] = "http://images.motograndprix.com/multimedia2/280/280800.jpg";
img[5] = "http://images.motograndprix.com/multimedia2/280/280796.jpg";
img[6] = "http://images.motograndprix.com/multimedia2/280/280892.jpg";
img[7] = "http://images.motograndprix.com/multimedia2/280/280789.jpg";
img[8] = "http://images.motograndprix.com/multimedia2/280/280798.jpg";
img[9] = "";
img[10] = "http://images.motograndprix.com/multimedia2/278/278847.jpg";
img[11] = "http://images.motograndprix.com/multimedia2/278/278837.jpg";
img[12] = "http://images.motograndprix.com/multimedia2/278/278838.jpg";
il file txt è fatto in questo modo
f1=http://link.JPG&
f2=http://link.jpg
GRAZIE A TUTTI