![]() |
Autori: unknown, modified and explained from www.webmasterpaolo.com
Una semplice galleria fotografica che i navigatori troveranno eccellente ed i webmaster facile da installare, questa galleria consta di 5 fotografie, ma è possibile modificarla per dimensione (attuale: 230x200) e per numero di immagini.
RITORNA ALLA PAGINA DELLE JAVASCRIPT
Lo script da inserire in html
<table border="0" cellpadding="0">
<caption><strong>IL NOSTRO LABARO NAZIONALE</strong></caption>
<tr>
<td width="100%"><img src="labaro_primo.jpg" width="230" height="200" name="photoslider"></td>
</tr>
<tr>
<td width="100%"><form method="POST" name="rotater">
<div align="center"><center><p><script language="JavaScript1.1">
var photos=new Array()
var which=0
/*Change the below variables to reference your own images. You may have as many images in the slider as you wish*/
photos[0]="labaro_primo.jpg"
photos[1]="labaro_genova.jpg"
photos[2]="labaro_natale.jpg"
photos[3]="labaro_contrin.jpg"
photos[4]="labaro_catania.jpg"
function backward(){
if (which>0){
window.status=''
which--
document.images.photoslider.src=photos[which]
}
}
function forward(){
if (which<photos.length-1){
which++
document.images.photoslider.src=photos[which]
}
else window.status='End of gallery'
}
</script><input type="button" value="<<Back" name="B2"
onClick="backward()"> <input type="button" value="Next>>" name="B1"
onClick="forward()"><br>
<a href="#" onClick="which=1;backward();return false"><small>Start Over</small></a></p>
</center></div>
</form>
</td>
</tr>
</table>