Question:

How do I get my automatic slide show to work on a html webpage.

by  |  earlier

0 LIKES UnLike

Heres what I have so far. This is all under my <body>. For some reason I can get the picture to show up but it will not rotate. I'm new to this so try to keep your answers as stupid friendly as possible. Thanks.

<Center><img alt="slide show" src="http://www.geocities.com/akureixis/...

width="280" height="210" id="HomePageSlideShow"><Center>

<script type="text/javascript">

var slideCache = new Array();

function RunSlideShow(pictureName,imageFiles,disp...

{

var imageSeparator = imageFiles.indexOf(";");

var nextImage = imageFiles.substring(0,imageSeparator);

var picture = document.getElementById(pictureName);

if (picture.filters)

{

picture.style.filter="blendTrans(duratio...

picture.filters.blendTrans.Apply();

}

picture.src = nextImage;

if (picture.filters)

{

picture.filters.blendTrans.Play();

}

var futureImages= imageFiles.substring(imageSeparator+1,im...

+ ';' + nextImage;

setTimeout("RunSlideShow('"+pictureName+...

displaySecs*1000);

// Cache the next image to improve performance.

imageSeparator = futureImages.indexOf(";");

nextImage = futureImages.substring(0,imageSeparator)...

if (slideCache[nextImage] == null) {

slideCache[nextImage] = new Image;

slideCache[nextImage].src = nextImage;

}

}

</script>

<script type="text/javascript">

RunSlideShowRunSlideShow("HomePageSlid...

"http://www.geocities.com/akureixis/Un...

jpg;http://www.geocities.com/akureixis/Untitled-3.jpg;http://www.geocities.com/akureixis/Untitled

-4.jpg;http://www.geocities.com/akureixis/Untitled-5.jpg;http://www.geocities.com/akureixis/Untit

led-6.jpg;http://www.geocities.com/akureixis/Untitled-1.jpg;http://www.geocities.com/akureixis/Un

titled-7.jpg;http://www.geocities.com/akureixis/Untitled-8.jpg;http://www.geocities.com/akureixis

/Untitled-9.jpg;http://www.geocities.com/akureixis/Untitled-10.jpg,5);

</script>

 Tags:

   Report

1 ANSWERS


  1. In addition to being a jumbled, truncated mess, your code is incomplete and thus this question is fail.

    1. Post ALL your code as a text file on a Web site.

    2. Post a link to the text file here.

    3. Look at your question before you submit it next time.

    http://www.dougv.com/blog/2006/12/13/a-r...

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.