PDA

View Full Version : DHTML Slide Show Script - Replay, Resize photos



dkvietzke
01-14-2006, 03:55 AM
Hello,
I have another question about:

DHTML Slide Show Script (http://www.dynamicdrive.com/dynamicindex14/dhtmlslide.htm)

1. Is there a way that when the last slide has shown, that when you click "next" it will go back to the first slide again (replay)?

2. Is there a way to resize the photos (mine are too big) by editing the script using a percentage instead of the actual pixel size? Mine are too big, so I need to make them smaller, but hate to have to go into the photo editor for each one.

Here is my slideshow draft so far: Tearing Down of Neff (http://www.ourlamirada.com/schools/neff/neffdes/tearingdownneff4.html)

Thank you.
Debbie V.

jscheuer1
01-14-2006, 08:21 AM
1. ) Replace the two functions of the same names, with the ones below:


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()
}

2. ) Sorry, there may be a way to have the browser resize your images but, it is such a bad idea for so many reasons, I will not even consider it. However, there is good news! Most paint and image programs will allow you to batch resize your images, so it shouldn't be so much of an ordeal as you might imagine.

dkvietzke
01-14-2006, 04:40 PM
John,
Again. Thank you very much. These edits worked.

Also - I had no idea I could to BATCH changes to my photos. Now I do. Thanks for the tip:)

Debbie V.