1) Script Title: DHTML Slide Show Script
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...dhtmlslide.htm
3) Describe problem:
I would like my images to loop back or forward. If I'm at the begining of the slide show and click on the "back" button I would like for it to go all the way to the last image. If I get to the last image and keep clicking the "forward" button I would like for it to go to the first image.
I did a search and found an answer, but it doesn't work for me. Was it an old version, perhaps? Here's what that part of the code looks like:
function backward(){
if (which>0){
which--
applyeffect()
document.images.photoslider.src=photos[which]
playeffect()
keeptrack()
}
}
function forward(){
if (which<photos.length-1){
which++
applyeffect()
document.images.photoslider.src=photos[which]
playeffect()
keeptrack()
}
}



Reply With Quote

Bookmarks