www.webdeveloper.com
Results 1 to 3 of 3

Thread: why is my slideshow not working?

  1. #1
    Join Date
    Apr 2011
    Posts
    2

    why is my slideshow not working?

    Please see http://samedayclean.com (a site under construction).

    The image of the man in the white shirt is the first of 4 images that should display as a automatic slide show. But now it does not.

    Would someone please tell me what's wrong with this script?

    Thank you

  2. #2
    Join Date
    Mar 2010
    Posts
    128
    Well, a couple things... One you added the image to a TD, which doesnt have a SRC attribute... You should add the image inside the div as an img element, not as a background to a TD.

    Another thing, and I don't know if I am just missing something or what... But I don't see anything more than:

    images = new Array(
    "http://samedayclean.com/images/slides/slide01.jpg",
    "http://samedayclean.com/images/slides/slide02.jpg",
    "http://samedayclean.com/images/slides/slide03.jpg",
    "http://samedayclean.com/images/slides/slide04.jpg",

    );
    var i = 1;
    function rotatepic() {
    if (document.rotate) {
    document.rotate.src=images[i % images.length];
    i++;
    }
    }


    If thats all your doing, how do you i magine the images would even animate? There are no events to trigger the animation, and nothing transition the images. Here is some simple logic:

    On document ready start slide show.
    Wait 5 seconds
    Transition first image out
    Transition second image in
    Wait 5 seconds
    repeat.

  3. #3
    Join Date
    Apr 2011
    Posts
    2
    Thank you for the response. I truly appreciate that.

    But I'm afraid it's way above my level of understanding.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles