salve a tutti.
ho scaricato uno script per galleria fotografica fuzionante.
Il mio problema è che vorrei che dalle foto poste nella cartella immage venissero fatte delle miniature 'al volo' e fossero queste a scorrere.
Come posso fare?
Grazie!
Il codice è questo.
codice:<form> <center> <script language="Javascript"> <!-- var current = 0; function initArray() { this.length = initArray.arguments.length; for (var i = 0; i < this.length; i++) { this[i] = initArray.arguments[i]; } } var picz = new initArray( "immage/01.gif", "immage/02.gif", "immage/03.gif" ); document.write('[img]'+picz[0]+'[/img]'); function checkIt(val) { var goodnum = current+val; if (goodnum < 0) alert("Non puoi andare indietro!"); else if (goodnum > picz.length-1) alert("Non puoi andare avanti!"); else document.jscriptimg.src = picz[goodnum]; current = goodnum; } //--> </script> <input type="button" value="Indietro" onclick="checkIt(-1)"> <input type="button" value="Avanti" onclick="checkIt(1)"> </center> </form>

Rispondi quotando