HTML Image help??

Out of context: Reply #2

  • Started
  • Last post
  • 3 Responses
  • jevad0

    jscript in the head:

    gSlideshowInterval = 6;
    gNumberOfImages = 6;

    gImages = new Array(gNumberOfImages);
    gImages[0] = "graphics/photos/london_color.jp...
    gImages[1] = "graphics/photos/london_color2.j...
    gImages[2] = "graphics/photos/london_color3.j...
    gImages[3] = "graphics/photos/london_color4.j...
    gImages[4] = "graphics/photos/london_color5.j...
    gImages[5] = "graphics/photos/london_color6.j...

    function canManipulateImages() {
    if (document.images)
    return true;
    else
    return false;
    }
    function loadSlide(imageURL) {
    if (gImageCapableBrowser) {
    document.slide.src = imageURL;
    return false;
    }
    else {
    return true;
    }
    }
    function nextSlide() {
    gCurrentImage = (gCurrentImage + 1) % gNumberOfImages;
    loadSlide(gImages[gCurrentImage...
    }
    gImageCapableBrowser = canManipulateImages();
    gCurrentImage = 0;
    setInterval("nextSlide()",gSlide... * 1000);

    and stick this:

    name="slide"

    in your image tags.

View thread