Changing slideshow options

Here is how to change the duration for the slideshow. In the body tag put this:


<body onload="updateSS();"> </body>

In the javascript section, put this:


function updateSS() {
     // look at the body tags classes, if it is the homepage then swap
     bodyClass = document.getElementsByTagName("body")[0].className;
     if (bodyClass.indexOf("slideshow") != -1) {
          slideDuration = 3;
          document.getElementById("duration").value = "3";
     }
}

2 Responses to “Changing slideshow options”

  1. John Roberts Says:

    Hello,

    I’ve tried this code, but it’s not working in my WeddingGallery. I’m also using the Halloween1 theme… is there a problem with this?

    Cheers,
    John

  2. C0ppert0p Says:

    These examples have been invaluable. Keep ‘em coming !
    My big question(s) of the day:
    How can I change the number of columns thumbnails use per page?

    How can I change where the current picture is displayed? Currently it is displayed at the bottom of the page. I want to move it to the top of the page.

Leave a Reply