I’m trying to determine the position of images & text using javascript. I’ve been using something like:
document.write(“<a href=”+recentarrivals[i].url+”><img src=”+recentarrivals[i].image+” height = ‘185px’ width = ‘120px’ alt=’image’ /></a>”)
and then
document.write(recentarrivals[i].author.fontcolor(“#000000”)+recentarrivals[i].description.italics());
which works, more or less, as long as I know how many images I’m going to use, so I can place each part in a separate div with css formatting. But I want to call the images (& text) from an n-sized array, so I have to use a js loop, which as far as I can figure eliminates the ability to place each part inside a div box. None of the attempts I’ve made using the style method seem to work (which makes sense, the content of the array isn’t an element in the page, it’s in another file.). Hope that’s clear — can anyone help?
Thanks!