PDA

View Full Version : DHTML Slide Show Script



bayeus
02-13-2006, 04:28 PM
http://www.dynamicdrive.com/dynamicindex14/dhtmlslide.htm

Is there a way to make the slide show script "next slide button" loop back to the first picture when it come to the end?

jscheuer1
02-13-2006, 07:00 PM
Replace the two functions of the same names as these with these versions:


function backward(){
which=which>0? which-1 : photos.length-1
applyeffect()
document.images.photoslider.src=photos[which]
playeffect()
keeptrack()
}

function forward(){
which=which<photos.length-1? which+1 : 0
applyeffect()
document.images.photoslider.src=photos[which]
playeffect()
keeptrack()
}

bayeus
02-14-2006, 12:35 AM
Thank you so much John it worked like a dream. I appreciate it so very much. Here's the page on my site if you want to see what I've done: http://bayeus.pircsites.com/page-two.html

Again Thank you so very much for your help.