Change this
for(var j = 0; j < draws[i].picks.length; j++) {
html.push("<li>"+draws[i].picks[j]+"</li>");
showWin(draws[i].picks[j]);
}
to
for(var j = 0; j < draws[i].picks.length; j++) {
var img = '<img src="/images/ball-'
+ draws[i].picks[j]
+ '.jpg" alt="'
+ draws[i].picks[j]
+ '" />';
html.push("<li>"+img+"</li>");
showWin(draws[i].picks[j]);
}
assuming that your images are named "ball-#" and located in the images directory.
tvanfosson
2009-08-22 18:35:24