I made a slideshow in dreamweaver which works, however when it gets to the end of the cycle it displays a black image before it loops again- how can i get this black 'image' to disappear?
In the header part:
<script type="text/javascript">
var slideCache = new Array();
function RunSlideShow(pictureName,imageFiles,displaySecs) {
var imageSeparator = imageFiles.indexOf(";");
var nextImage = imageFiles.substring(0,imageSeparator);
if (document.all) {
document.getElementById(pictureName).style.filter="blendTrans(duration=2)";
document.getElementById(pictureName).filters.blendTrans.Apply();
}
document.getElementById(pictureName).src = nextImage;
if (document.all) {
document.getElementById(pictureName).filters.blendTrans.Play();
}
var futureImages= imageFiles.substring(imageSeparator+1,imageFiles.length) + ';' + nextImage;
setTimeout("RunSlideShow('"+pictureName+"','"+futureImages+"',"+displaySecs+")",
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>
----------------------------------------------------------------------------------------------------------
In the body part: (class img = border:thin solid yellow; max-width:400px; padding:0;)
<table class="img" align="center">
<tr>
<td>
<img style="" id="foto" src="/images/opening/img01.jpg" height="240" width="306">
</td>
</tr>
</table>
<script language="JavaScript" type="text/javascript">
RunSlideShow("foto","/images/opening/img01.jpg;"
+ "/images/opening/img02.jpg;"
+ "/images/opening/img03.jpg;"
+ "/images/opening/img04.jpg;"
+ "/images/opening/img05.jpg;"
+ "/images/opening/img06.jpg;"
+ "/images/opening/img07.jpg;"
+ "/images/opening/img08.jpg;"
+ "/images/opening/img09.jpg;"
+ "/images/opening/img10.jpg;"
+ "/images/opening/img11.jpg;"
+ "/images/opening/img12.jpg",6);
</script>