Hello,
I am new to Javascript programming, I do know enough to modify certain parts of Javascript coding. I am trying to read a list box line by line and place the item into an image link. I am trying to loop throught the list box and write out the item to the link and also write out the count which is “i” to be the array number, if that make sense. Here is what I have so far. I am not sure what I am missing to get this done.
var i = 0
var listbox
var image
function listbox_selectall() {
do while i < listbox.count
listbox = document.getElementById(lstFileHidden);
image = form.list.options[listbox].text;
// for (var count = 0; i < listbox.options.length; i++) {
// listbox.options[i].selected = isSelect;
i+=1
leftrightslide[i] = ‘<img src=”content/Small Photos/images/’+ image'” width = “240” height = “161” class = “boarder” border=1></a>’
}
Thanks for you help
Jeff