Ciao... per esigenze di layout/formattazione dovrei inserire lo script qui sotto in una tabella (formata da 3 righe e con la riga di mezzo suddivisa in tre colonne)...
e allora ho corretto in questo modo:codice:<% // VERIFICO CHE SIA STATO INSERITO UN VALORE NELLA QUERYSTRING if (isNaN(idImg)) Response.Write("Nessuna immagine richiesta"); else { // VERIFICO CHE L'IMMAGINE RICHIESTA ESISTA var fso = new ActiveXObject("Scripting.FileSystemObject"); if (!fso.FileExists(Server.MapPath(percorso + "/" + idImg + ".jpg"))) { Response.Write("Impossibile trovare l'immagine # " + idImg); } // SE ESISTE, ALLORA LA STAMPO A VIDEO E... else { Response.Write("<b class='Stile4'>Immagine # " + idImg + "[/b] [img]" + percorso + "/" + idImg + ".jpg[/img] "); var dir = fso.GetFolder(Server.MapPath(percorso)); // ...E CREO UN MENU DU NAVIGAZIONE PER TUTTE LE IMMAGINI for (var i=1; i<dir.Files.Count+1; i++) { Response.Write("<span class='Stile4'>[" + i + "]</span> "); } } } %>
...ma qualcosa non fuziona e non riesco a capire cosacodice:<table width="100%" border="2" cellspacing="0" cellpadding="0"> <tr> <td colspan="3"></td> </tr> <tr> <td></td> <th><% // VERIFICO CHE SIA STATO INSERITO UN VALORE NELLA QUERYSTRING if (isNaN(idImg)) Response.Write("Nessuna immagine richiesta"); else { // VERIFICO CHE L'IMMAGINE RICHIESTA ESISTA var fso = new ActiveXObject("Scripting.FileSystemObject"); if (!fso.FileExists(Server.MapPath(percorso + "/" + idImg + ".jpg"))) { Response.Write("Impossibile trovare l'immagine # " + idImg); } // SE ESISTE, ALLORA LA STAMPO A VIDEO E... else { Response.Write("<b class='Stile4'>Immagine # " + idImg + "[/b] [img]" + percorso + "/" + idImg + ".jpg[/img] "); var dir = fso.GetFolder(Server.MapPath(percorso)); // ...E CREO UN MENU DU NAVIGAZIONE PER TUTTE LE IMMAGINI for (var i=1; i<dir.Files.Count+1; i++) %></th> <td><% { Response.Write("<span class='Stile4'>[" + i + "]</span> "); } } } %></td> </tr> <tr> <td colspan="3"></td> </tr> </table>![]()

Rispondi quotando
