Click here to Skip to main content
15,887,386 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I am attempting to run a slideshow of images.
I have the correct call from the website and as far as I can tell the paths are correct.
But it is giving a blank image.
Here is where I think it is going wrong.

C#
function initSlideShow() {
    document.getElementById('arrow_left').onmousemove = startSlide;
    document.getElementById('arrow_left').onmouseout = releaseSlide;
    document.getElementById('arrow_right').onmousemove = startSlide;
    document.getElementById('arrow_right').onmouseout = releaseSlide;
    imageGalleryObj = document.getElementById('theImages');
    imageGalleryLeftPos = imageGalleryObj.offsetLeft;
    imageGalleryWidth = document.getElementById('galleryContainer').offsetWidth - 80;
    maxGalleryXPos = imageGalleryObj.offsetLeft;
    minGalleryXPos = imageGalleryWidth - document.getElementById('slideEnd').offsetLeft;
    var slideshowImages = imageGalleryObj.getElementsByTagName('IMG')
    for (var no = 0; no < slideshowImages.length; no++) {
        slideshowImages[no].onmouseover = showImage;
    }
    var divs = imageGalleryObj.getElementsByTagName('DIV');
    for (var no = 0; no < divs.length; no++) {
        if (divs[no].className == 'imageCaption') imageGalleryCaptions[imageGalleryCaptions.length] = divs[no].innerHTML;
    }
    gallerySlide();
}



I cannot see where I am falling off the log on this.

Any help?


I hope the question is clear and trust that there are sage developers who can cast a caustic eye over my problem.
Posted
Comments
Sunasara Imdadhusen 9-Feb-11 7:21am    
Hi,
Just provide code snippet for startSlide and releaseSlide because the problem was in this function.
Sunasara Imdadhusen 9-Feb-11 7:23am    
and also provide code for showImage function too.
thatraja 9-Feb-11 18:14pm    
Did you get any error? you can check that in firefox error console. if there please include that in your question.
Manfred Rudolf Bihy 10-Feb-11 17:09pm    
Any news on your progress Dave?
Dalek Dave 11-Feb-11 3:21am    
Sorry, I meant to alter the post.
I sorted it.
There was a ';' missing so it was running one line into the next.
Works fine now.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900