Results 1 to 3 of 3

Thread: DHTML Slide Show Script - Replay, Resize photos

  1. #1
    Join Date
    Jan 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DHTML Slide Show Script - Replay, Resize photos

    Hello,
    I have another question about:

    DHTML Slide Show Script

    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

    Thank you.
    Debbie V.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    1. ) Replace the two functions of the same names, with the ones below:

    Code:
    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jan 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •