E' lento e non produce l'effetto desiderato perché la variabile $thumbpath non viene valorizzata: quella variabile appartiene al tuo linguaggio server-side per cui dovrebbe essere dentro ad un blocco <% %>. Se ad esempio avessi un array contenente le immagini farei:
codice:<% String images = ""; for (int i = 0; i < arrayIMG.length-1; i++) { images += "'"+arrayIMG[i]+"',"; } images += "'"+arrayIMG[arrayIMG.length-1]+"'"; %> window.onload = function() { MM_preloadImages(<% =images;%>); }

Rispondi quotando
