Galeria zdjec..zapetlenie

0

Witam!

mam takie pytanko mam taki skrypt galerii chce aby po przejzeniu wszystkich
fotek pokazywalo sie pierwsze zdjecie..czyli abym mogl przegladac gallerie w
kolo..co mam zrobic

<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]="foty/1.jpg" photos[1]="foty/2.jpg" photos[2]="foty/3.jpg" photos[3]="foty/4.jpg" photos[4]="foty/5.jpg" photos[5]="foty/6.jpg" photos[6]="foty/7.jpg" photos[7]="foty/8.jpg" photos[8]="foty/9.jpg" photos[9]="foty/10.jpg" photos[10]="foty/11.jpg" photos[11]="foty/12.jpg" photos[12]="foty/13.jpg" photos[13]="foty/14.jpg" photos[14]="foty/15.jpg" photos[15]="foty/16.jpg" photos[16]="foty/17.jpg" photos[17]="foty/18.jpg" photos[18]="foty/19.jpg" photos[19]="foty/20.jpg" photos[20]="foty/21.jpg" photos[21]="foty/22.jpg" photos[22]="foty/23.jpg" photos[23]="foty/24.jpg" photos[24]="foty/25.jpg" photos[25]="foty/26.jpg" photos[26]="foty/27.jpg" photos[27]="foty/28.jpg" photos[28]="foty/29.jpg" photos[29]="foty/30.jpg" photos[30]="foty/31.jpg" photos[31]="foty/32.jpg" photos[32]="foty/33.jpg" photos[33]="foty/34.jpg" photos[34]="foty/35.jpg" photos[35]="foty/36.jpg" photos[36]="foty/37.jpg" photos[37]="foty/38.jpg" photos[38]="foty/39.jpg" photos[39]="foty/40.jpg" photos[40]="foty/41.jpg" photos[41]="foty/42.jpg" function backward(){ if (which>0){ window.status='' which-- document.images.photoslider.src=photos[which] } } function forward(){ if (which<photos.length-1){ which++="which++" document.images.photoslider.src="photos[which]" }="}" else="else" window.status="End of gallery" </script="&lt;/script">

dziekuje i pozdrawiam

0

function backward()
{
if (which>0) which--; else which = photos.length-1;
document.images.photoslider.src=photos[which];
}

function forward(){
if (which<photos.length-1) which++; else which = 0;
document.images.photoslider.src=photos[which]
}

1 użytkowników online, w tym zalogowanych: 0, gości: 1